|
Eclipse JDT Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.launching.sourcelookup.JavaSourceLocator
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.
Locates source for a Java debug session by searching a configurable set of source locations.
This class may be instantiated; it is not intended to be subclassed.
ISourceLocator
Field Summary | |
static String |
ID_JAVA_SOURCE_LOCATOR
Deprecated. Identifier for the 'Java Source Locator' extension (value "org.eclipse.jdt.launching.javaSourceLocator" ). |
Constructor Summary | |
JavaSourceLocator()
Deprecated. Constructs a new empty JavaSourceLocator. |
|
JavaSourceLocator(IJavaProject project)
Deprecated. Constructs a new JavaSourceLocator that searches the default set of source locations for the given Java project. |
|
JavaSourceLocator(IJavaProject[] projects,
boolean includeRequired)
Deprecated. Constructs a new Java source locator that looks in the specified project for source, and required projects, if includeRequired is true . |
|
JavaSourceLocator(IJavaSourceLocation[] locations)
Deprecated. Constructs a new JavaSourceLocator that searches the specified set of source locations for source elements. |
Method Summary | |
protected static void |
collectRequiredProjects(IJavaProject proj,
ArrayList res)
Deprecated. Adds all projects required by proj to the list
res |
static IJavaSourceLocation[] |
getDefaultSourceLocations(IJavaProject project)
Deprecated. Returns a default collection of source locations for the given Java project. |
String |
getMemento()
Deprecated. |
Object |
getSourceElement(org.eclipse.debug.core.model.IStackFrame stackFrame)
Deprecated. |
Object[] |
getSourceElements(org.eclipse.debug.core.model.IStackFrame stackFrame)
Deprecated. Returns all source elements that correspond to the type associated with the given stack frame, or null if none. |
IJavaSourceLocation[] |
getSourceLocations()
Deprecated. Returns the locations that this source locator is currently searching, in the order that they are searched. |
void |
initializeDefaults(org.eclipse.debug.core.ILaunchConfiguration configuration)
Deprecated. |
void |
initializeFromMemento(String memento)
Deprecated. |
void |
setSourceLocations(IJavaSourceLocation[] locations)
Deprecated. Sets the locations that will be searched, in the order to be searched. |
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_JAVA_SOURCE_LOCATOR
"org.eclipse.jdt.launching.javaSourceLocator"
).
Constructor Detail |
public JavaSourceLocator()
public JavaSourceLocator(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 JavaSourceLocator(IJavaSourceLocation[] locations)
locations
- the source locations to search for
source, in the order they should be searchedpublic JavaSourceLocator(IJavaProject project) throws org.eclipse.core.runtime.CoreException
project
- Java project
org.eclipse.core.runtime.CoreException
- if an exception occurs reading
the classpath of the given or any required projectMethod Detail |
public void setSourceLocations(IJavaSourceLocation[] locations)
locations
- the locations that will be searched, in the order
to be searchedpublic IJavaSourceLocation[] getSourceLocations()
public Object[] getSourceElements(org.eclipse.debug.core.model.IStackFrame stackFrame)
null
if none.
stackFrame
- stack frame
null
if nonepublic Object getSourceElement(org.eclipse.debug.core.model.IStackFrame stackFrame)
getSourceElement
in interface org.eclipse.debug.core.model.ISourceLocator
protected static void collectRequiredProjects(IJavaProject proj, ArrayList res) throws JavaModelException
proj
to the list
res
proj
- the project for which to compute required
projectsres
- the list to add all required projects too
JavaModelException
public static IJavaSourceLocation[] getDefaultSourceLocations(IJavaProject project) throws org.eclipse.core.runtime.CoreException
project
- Java project
org.eclipse.core.runtime.CoreException
- if an exception occurs reading
computing the default locationspublic String getMemento() throws org.eclipse.core.runtime.CoreException
getMemento
in interface org.eclipse.debug.core.model.IPersistableSourceLocator
org.eclipse.core.runtime.CoreException
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
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
|
Eclipse JDT Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |