|
org.netbeans.api.debugger.jpda/2 2.31.1 | |||||||||
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/
Nested Class Summary
static interface
SourcePathProvider.Registration
Declarative registration of a SourcePathProvider implementation.
Field Summary
static String
PROP_SOURCE_ROOTS
Property name constant.
Constructor Summary
SourcePathProvider()
Method Summary
abstract void
addPropertyChangeListener(PropertyChangeListener l)
Adds property change listener.
abstract String[]
getOriginalSourceRoots()
Returns set of original source roots.
abstract String
getRelativePath(String url,
char directorySeparator,
boolean includeExtension)
Returns relative path (java/lang/Thread.java) for given url
("file:///C:/Sources/java/lang/Thread.java").
String
getSourceRoot(String url)
Returns the source root (if any) for given url.
abstract String[]
getSourceRoots()
Returns array of source roots.
abstract String
getURL(String relativePath,
boolean global)
Translates a relative path ("java/lang/Thread.java") to url
("file:///C:/Sources/java/lang/Thread.java").
abstract void
removePropertyChangeListener(PropertyChangeListener l)
Removes property change listener.
abstract void
setSourceRoots(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
getSourceRoot
public String getSourceRoot(String url)
url
- a url of resource file
null
when no source root was found.
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.31.1
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Built on December 5 2011. | Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.