|
Eclipse JDT Release 3.6 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.debug.ui.JavaUISourceLocator
org.eclipse.debug.core.sourcelookup
and org.eclipse.debug.core.sourcelookup.containers
. This class
has been replaced by a Java source lookup director and Java source lookup
participant. To migrate to the new source lookup support clients should
add two new attributes to their launch configuration type extensions:ATTR_SOURCE_PATH_PROVIDER
attribute (if present), or a default source lookup path based on a configuration's
runtime classpath. This class has been replaced by the Java source lookup
director which is an internal class, but can be used via the
sourceLocatorId
attribute on a launch configuration type extension.
public class 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.
Field Summary | |
---|---|
static String |
ATTR_FIND_ALL_SOURCE_ELEMENTS
Deprecated. Launch configuration attribute indicating that this source locator should locate all source elements that correspond to a stack frame, rather than the first match. |
static String |
ID_PROMPTING_JAVA_SOURCE_LOCATOR
Deprecated. Identifier for the 'Prompting Java Source Locator' extension (value "org.eclipse.jdt.debug.ui.javaSourceLocator" ). |
Constructor Summary | |
---|---|
JavaUISourceLocator()
Deprecated. Constructs an empty source locator. |
|
JavaUISourceLocator(IJavaProject project)
Deprecated. 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)
Deprecated. Constructs a new source locator that looks in the specified project for source, and required projects, if includeRequired is true . |
Method Summary | |
---|---|
String |
getMemento()
Deprecated. |
Object |
getSourceElement(org.eclipse.debug.core.model.IStackFrame stackFrame)
Deprecated. |
IJavaSourceLocation[] |
getSourceLocations()
Deprecated. |
void |
initializeDefaults(org.eclipse.debug.core.ILaunchConfiguration configuration)
Deprecated. |
void |
initializeFromMemento(String memento)
Deprecated. |
boolean |
isFindAllSourceElements()
Deprecated. Returns whether this source locator is configured to search for all source elements that correspond to a stack frame. |
void |
setFindAllSourceElement(boolean findAll)
Deprecated. Sets whether this source locator is configured to search for all source elements that correspond to a stack frame, or the first match. |
void |
setSourceLocations(IJavaSourceLocation[] locations)
Deprecated. |
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"
).
public static final String ATTR_FIND_ALL_SOURCE_ELEMENTS
false
.
Constructor Detail |
---|
public JavaUISourceLocator()
public JavaUISourceLocator(IJavaProject[] projects, boolean includeRequired) throws org.eclipse.core.runtime.CoreException
includeRequired
is true
.
projects
- the projects in which to look for sourceincludeRequired
- whether to look in required projects
as well
org.eclipse.core.runtime.CoreException
public JavaUISourceLocator(IJavaProject project) throws org.eclipse.core.runtime.CoreException
project
- Java project
org.eclipse.core.runtime.CoreException
- if unable to read the project's
build pathMethod Detail |
---|
public Object getSourceElement(org.eclipse.debug.core.model.IStackFrame stackFrame)
getSourceElement
in interface org.eclipse.debug.core.model.ISourceLocator
ISourceLocator.getSourceElement(IStackFrame)
public String getMemento() throws org.eclipse.core.runtime.CoreException
getMemento
in interface org.eclipse.debug.core.model.IPersistableSourceLocator
org.eclipse.core.runtime.CoreException
IPersistableSourceLocator.getMemento()
public void initializeDefaults(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
initializeDefaults
in interface org.eclipse.debug.core.model.IPersistableSourceLocator
org.eclipse.core.runtime.CoreException
IPersistableSourceLocator.initializeDefaults(ILaunchConfiguration)
public void initializeFromMemento(String memento) throws org.eclipse.core.runtime.CoreException
initializeFromMemento
in interface org.eclipse.debug.core.model.IPersistableSourceLocator
org.eclipse.core.runtime.CoreException
IPersistableSourceLocator.initializeFromMemento(String)
public IJavaSourceLocation[] getSourceLocations()
JavaSourceLocator.getSourceLocations()
public void setSourceLocations(IJavaSourceLocation[] locations)
JavaSourceLocator.setSourceLocations(IJavaSourceLocation[])
public boolean isFindAllSourceElements()
false
is returned, searching stops on the first match. If there is more than
one source element that corresponds to a stack frame, the user is
prompted to choose a source element to open.
public void setFindAllSourceElement(boolean findAll)
findAll
- whether this source locator should search for all source
elements that correspond to a stack frame
|
Eclipse JDT Release 3.6 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |