|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jdt.debug.ui.JavaUISourceLocator
A source locator that prompts the user to find source when source cannot be found on the current source lookup path.
This class is intended to be instantiated. This class is not intended to be subclassed.
Field Summary | |
static String |
ID_PROMPTING_JAVA_SOURCE_LOCATOR
Identifier for the 'Prompting Java Source Locator' extension (value "org.eclipse.jdt.debug.ui.javaSourceLocator" ). |
Constructor Summary | |
JavaUISourceLocator()
Constructs an empty source locator. |
|
JavaUISourceLocator(IJavaProject project)
Constructs a source locator that searches for source in the given Java project, and all of its required projects, as specified by its build path or default source lookup settings. |
|
JavaUISourceLocator(IJavaProject[] projects,
boolean includeRequired)
Constructs a new source locator that looks in the specified project for source, and required projects, if includeRequired is true . |
Method Summary | |
String |
getMemento()
|
Object |
getSourceElement(IStackFrame stackFrame)
|
IJavaSourceLocation[] |
getSourceLocations()
|
void |
initializeDefaults(ILaunchConfiguration configuration)
|
void |
initializeFromMemento(String memento)
|
void |
setSourceLocations(IJavaSourceLocation[] locations)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String ID_PROMPTING_JAVA_SOURCE_LOCATOR
"org.eclipse.jdt.debug.ui.javaSourceLocator"
).
Constructor Detail |
public JavaUISourceLocator()
public JavaUISourceLocator(IJavaProject[] projects, boolean includeRequired) throws JavaModelException
includeRequired
is true
.
projects
- the projects in which to look for sourceincludeRequired
- whether to look in required projects
as wellpublic JavaUISourceLocator(IJavaProject project) throws CoreException
project
- Java project
CoreException
- if unable to read the project's
build pathMethod Detail |
public Object getSourceElement(IStackFrame stackFrame)
getSourceElement
in interface ISourceLocator
ISourceLocator.getSourceElement(IStackFrame)
public String getMemento() throws CoreException
getMemento
in interface IPersistableSourceLocator
CoreException
IPersistableSourceLocator.getMemento()
public void initializeDefaults(ILaunchConfiguration configuration) throws CoreException
initializeDefaults
in interface IPersistableSourceLocator
CoreException
IPersistableSourceLocator.initializeDefaults(ILaunchConfiguration)
public void initializeFromMemento(String memento) throws CoreException
initializeFromMemento
in interface IPersistableSourceLocator
CoreException
IPersistableSourceLocator.initializeFromMemento(String)
public IJavaSourceLocation[] getSourceLocations()
JavaSourceLocator.getSourceLocations()
public void setSourceLocations(IJavaSourceLocation[] locations)
JavaSourceLocator.setSourceLocations(IJavaSourceLocation[])
|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |