| java.lang.Object org.netbeans.spi.debugger.jpda.SourcePathProvider
SourcePathProvider | abstract public class SourcePathProvider (Code) | | Defines source path for debugger. It translates relative path
(like "java/lang/Thread.java", or class name) to url
("file:///C:/Sources/java/lang/Thread.java"). It allows to define
and modify source path.
All instances of this class should be registerred in
"Meta-inf/debugger//org.netbeans.spi.debugger.jpda.EngineContextProvider"
files. There should be at least one instance installed.
author: Maros Sandor, Jan Jancura |
PROP_SOURCE_ROOTS | final public static String PROP_SOURCE_ROOTS(Code) | | Property name constant.
|
addPropertyChangeListener | abstract public void addPropertyChangeListener(PropertyChangeListener l)(Code) | | Adds property change listener.
Parameters: l - new listener. |
getOriginalSourceRoots | abstract public String[] getOriginalSourceRoots()(Code) | | Returns set of original source roots.
set of original source roots |
getRelativePath | abstract public String getRelativePath(String url, char directorySeparator, boolean includeExtension)(Code) | | Returns relative path (java/lang/Thread.java) for given url
("file:///C:/Sources/java/lang/Thread.java").
Parameters: url - a url of resource file Parameters: directorySeparator - a directory separator character Parameters: includeExtension - whether the file extension should be included in the result relative path |
getSourceRoot | public String getSourceRoot(String url)(Code) | | Returns the source root (if any) for given url.
Parameters: url - a url of resource file the source root or null when no source root was found. since: 2.6 |
getSourceRoots | abstract public String[] getSourceRoots()(Code) | | Returns array of source roots.
|
getURL | abstract public String getURL(String relativePath, boolean global)(Code) | | Translates a relative path ("java/lang/Thread.java") to url
("file:///C:/Sources/java/lang/Thread.java"). Uses GlobalPathRegistry
if global == true.
Parameters: relativePath - a relative path (java/lang/Thread.java) Parameters: global - true if global path should be used url |
removePropertyChangeListener | abstract public void removePropertyChangeListener(PropertyChangeListener l)(Code) | | Removes property change listener.
Parameters: l - removed listener. |
setSourceRoots | abstract public void setSourceRoots(String[] sourceRoots)(Code) | | Sets array of source roots.
Parameters: sourceRoots - a new array of sourceRoots |
|
|