|
org.netbeans.api.debugger.jpda/2 2.4.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.spi.debugger.jpda.SourcePathProvider
public abstract class SourcePathProvider
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/
Field Summary
static StringPROP_SOURCE_ROOTS
Property name constant.
Constructor Summary
SourcePathProvider()
Method Summary
abstract voidaddPropertyChangeListener(PropertyChangeListener l)
Adds property change listener.
abstract String[]getOriginalSourceRoots()
Returns set of original source roots.
abstract StringgetRelativePath(String url,
char directorySeparator,
boolean includeExtension)
Returns relative path (java/lang/Thread.java) for given url
("file:///C:/Sources/java/lang/Thread.java").
abstract String[]getSourceRoots()
Returns array of source roots.
abstract StringgetURL(String relativePath,
boolean global)
Translates a relative path ("java/lang/Thread.java") to url
("file:///C:/Sources/java/lang/Thread.java").
abstract voidremovePropertyChangeListener(PropertyChangeListener l)
Removes property change listener.
abstract voidsetSourceRoots(String[] sourceRoots)
Sets array of source roots.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
PROP_SOURCE_ROOTS
public static final String PROP_SOURCE_ROOTS
Constructor Detail
SourcePathProvider
public SourcePathProvider()
Method Detail
getRelativePath
public abstract String getRelativePath(String url,
char directorySeparator,
boolean includeExtension)
url - a url of resource filedirectorySeparator - a directory separator characterincludeExtension - whether the file extension should be included
in the result
getURL
public abstract String getURL(String relativePath,
boolean global)
relativePath - a relative path (java/lang/Thread.java)global - true if global path should be used
getSourceRoots
public abstract String[] getSourceRoots()
setSourceRoots
public abstract void setSourceRoots(String[] sourceRoots)
sourceRoots - a new array of sourceRoots
getOriginalSourceRoots
public abstract String[] getOriginalSourceRoots()
addPropertyChangeListener
public abstract void addPropertyChangeListener(PropertyChangeListener l)
l - new listener.
removePropertyChangeListener
public abstract void removePropertyChangeListener(PropertyChangeListener l)
l - removed listener.
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
org.netbeans.api.debugger.jpda/2 2.4.22
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.