Constructor and Description |
---|
SourceCodeBrowser(String root,
boolean useDesktop)
Construct a browser.
|
Modifier and Type | Method and Description |
---|---|
void |
addPage(String key,
String path) |
File |
getRootDirectory()
Gets the root source directory if the sources are being serverd from a local
file system directory.
|
URI |
getRootURI() |
SourceCodeViewer |
getViewer() |
void |
showPage(String key,
String page)
Shows the given page.
|
void |
showPage(String key,
URI uri)
Shows the given page.
|
public SourceCodeBrowser(String root, boolean useDesktop)
root
- a path to be resolved as an URI to root of source tree.useDesktop
- flags to use external or internal browser.public URI getRootURI()
public File getRootDirectory()
public void showPage(String key, String page)
key
- key a user visible moniker for the page.page
- the path of the page content w.r.t the root URI of this browser.public SourceCodeViewer getViewer()
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.