| java.lang.Object org.netbeans.modules.debugger.jpda.SourcePath
SourcePath | public class SourcePath (Code) | | Utility methods for sources.
See Also: Similar See Also: class in debuggerjpda/ui when modifying this. author: Jan Jancura |
Constructor Summary | |
public | SourcePath(ContextProvider lookupProvider) |
Method Summary | |
public void | addPropertyChangeListener(PropertyChangeListener l) Adds property change listener. | public Object | annotate(JPDAThread t, String stratumn) | public Object | annotate(CallStackFrame csf, String stratumn) | public static String | convertClassNameToRelativePath(String className) | public SourcePathProvider | getContext() | public String[] | getOriginalSourceRoots() Returns set of original source roots. | public String[] | getProjectSourceRoots() Returns the project's source roots. | public String | getRelativePath(String url, char directorySeparator, boolean includeExtension) Returns relative path for given url. | public String | getSourceRoot(String url) Returns the source root (if any) for given url. | public String[] | getSourceRoots() Returns array of source roots. | public String | getURL(String relativePath, boolean global) Translates a relative path ("java/lang/Thread.java") to url
("file:///C:/Sources/java/lang/Thread.java"). | public String | getURL(StackFrame sf, String stratumn) | public String | getURL(Location loc, String stratumn) | public String | getURL(CallStackFrame csf, String stratumn) | public void | removePropertyChangeListener(PropertyChangeListener l) Removes property change listener. | public void | setSourceRoots(String[] sourceRoots) Sets array of source roots. | public boolean | showSource(JPDAThread t, String stratumn) | public boolean | showSource(Field v) | public boolean | sourceAvailable(String relativePath) | public boolean | sourceAvailable(JPDAThread t, String stratumn) | public boolean | sourceAvailable(Field f) | public boolean | sourceAvailable(CallStackFrame csf, String stratumn) |
SourcePath | public SourcePath(ContextProvider lookupProvider)(Code) | | |
addPropertyChangeListener | public void addPropertyChangeListener(PropertyChangeListener l)(Code) | | Adds property change listener.
Parameters: l - new listener. |
convertClassNameToRelativePath | public static String convertClassNameToRelativePath(String className)(Code) | | |
getContext | public SourcePathProvider getContext()(Code) | | |
getOriginalSourceRoots | public String[] getOriginalSourceRoots()(Code) | | Returns set of original source roots.
set of original source roots |
getProjectSourceRoots | public String[] getProjectSourceRoots()(Code) | | Returns the project's source roots.
array of source roots belonging to the project |
getRelativePath | public String getRelativePath(String url, char directorySeparator, boolean includeExtension)(Code) | | Returns relative path for given url.
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. |
getSourceRoots | public String[] getSourceRoots()(Code) | | Returns array of source roots.
|
getURL | 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 | public void removePropertyChangeListener(PropertyChangeListener l)(Code) | | Removes property change listener.
Parameters: l - removed listener. |
setSourceRoots | public void setSourceRoots(String[] sourceRoots)(Code) | | Sets array of source roots.
Parameters: sourceRoots - a new array of sourceRoots |
showSource | public boolean showSource(JPDAThread t, String stratumn)(Code) | | |
showSource | public boolean showSource(Field v)(Code) | | |
sourceAvailable | public boolean sourceAvailable(String relativePath)(Code) | | |
sourceAvailable | public boolean sourceAvailable(JPDAThread t, String stratumn)(Code) | | |
sourceAvailable | public boolean sourceAvailable(Field f)(Code) | | |
sourceAvailable | public boolean sourceAvailable(CallStackFrame csf, String stratumn)(Code) | | |
|
|