Package org.eclipse.jdt.debug.ui
Class JavaUISourceLocator
java.lang.Object
org.eclipse.jdt.debug.ui.JavaUISourceLocator
- All Implemented Interfaces:
org.eclipse.debug.core.model.IPersistableSourceLocator,org.eclipse.debug.core.model.ISourceLocator
@Deprecated
public class JavaUISourceLocator
extends Object
implements org.eclipse.debug.core.model.IPersistableSourceLocator
Deprecated.
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.
- Since:
- 2.0
- Restriction:
- This class is not intended to be sub-classed by clients.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.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 final StringDeprecated.Identifier for the 'Prompting Java Source Locator' extension (value"org.eclipse.jdt.debug.ui.javaSourceLocator"). -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.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, ifincludeRequiredistrue. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getSourceElement(org.eclipse.debug.core.model.IStackFrame stackFrame) Deprecated.Deprecated.Returns the locations that this source locator is currently searching, in the order that they are searched.voidinitializeDefaults(org.eclipse.debug.core.ILaunchConfiguration configuration) Deprecated.voidinitializeFromMemento(String memento) Deprecated.booleanDeprecated.Returns whether this source locator is configured to search for all source elements that correspond to a stack frame.voidsetFindAllSourceElement(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.voidsetSourceLocations(IJavaSourceLocation[] locations) Deprecated./** Sets the locations that will be searched, in the order to be searched.
-
Field Details
-
ID_PROMPTING_JAVA_SOURCE_LOCATOR
Deprecated.Identifier for the 'Prompting Java Source Locator' extension (value"org.eclipse.jdt.debug.ui.javaSourceLocator"). -
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. Default value isfalse.- Since:
- 2.1
-
-
Constructor Details
-
JavaUISourceLocator
public JavaUISourceLocator()Deprecated.Constructs an empty source locator. -
JavaUISourceLocator
public JavaUISourceLocator(IJavaProject[] projects, boolean includeRequired) throws org.eclipse.core.runtime.CoreException Deprecated.Constructs a new source locator that looks in the specified project for source, and required projects, ifincludeRequiredistrue.- Parameters:
projects- the projects in which to look for sourceincludeRequired- whether to look in required projects as well- Throws:
org.eclipse.core.runtime.CoreException- if the underlyingJavaSourceLocatorfails to be created
-
JavaUISourceLocator
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.- Parameters:
project- Java project- Throws:
org.eclipse.core.runtime.CoreException- if unable to read the project's build path
-
-
Method Details
-
getSourceElement
Deprecated.- Specified by:
getSourceElementin interfaceorg.eclipse.debug.core.model.ISourceLocator- See Also:
-
getMemento
Deprecated.- Specified by:
getMementoin interfaceorg.eclipse.debug.core.model.IPersistableSourceLocator- Throws:
org.eclipse.core.runtime.CoreException- See Also:
-
initializeDefaults
public void initializeDefaults(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException Deprecated.- Specified by:
initializeDefaultsin interfaceorg.eclipse.debug.core.model.IPersistableSourceLocator- Throws:
org.eclipse.core.runtime.CoreException- See Also:
-
initializeFromMemento
Deprecated.- Specified by:
initializeFromMementoin interfaceorg.eclipse.debug.core.model.IPersistableSourceLocator- Throws:
org.eclipse.core.runtime.CoreException- See Also:
-
getSourceLocations
Deprecated.Returns the locations that this source locator is currently searching, in the order that they are searched.- Returns:
- the locations that this source locator is currently searching, in the order that they are searched
-
setSourceLocations
Deprecated./** Sets the locations that will be searched, in the order to be searched.- Parameters:
locations- the locations that will be searched, in the order to be searched
-
isFindAllSourceElements
public boolean isFindAllSourceElements()Deprecated.Returns whether this source locator is configured to search for all source elements that correspond to a stack frame. Whenfalseis 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.- Returns:
- whether this source locator is configured to search for all source elements that correspond to a stack frame
- Since:
- 2.1
-
setFindAllSourceElement
public 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.- Parameters:
findAll- whether this source locator should search for all source elements that correspond to a stack frame- Since:
- 2.1
-
org.eclipse.debug.core.sourcelookupandorg.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:- sourceLocatorId="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"
- sourcePathComputerId="org.eclipse.jdt.launching.sourceLookup.javaSourcePathComputer"
The source locator id attribute specifies to use the Java source lookup director for launch configurations of the associated type, and the source path computer id attribute specifies the class to use when computing a default source lookup path for a launch configuration. The path computer referenced/provided (by the above id), computes a default source lookup path based on the support provided in the 2.0 release - i.e. a configuration'sATTR_SOURCE_PATH_PROVIDERattribute (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 thesourceLocatorIdattribute on a launch configuration type extension.