org.eclipse.debug.core.sourcelookup
and org.eclipse.debug.core.sourcelookup.containers. This class
has been replaced by
org.eclipse.jdt.launching.sourcelookup.containers.JavaProjectSourceContainer.public class JavaProjectSourceLocation extends PlatformObject implements IJavaSourceLocation
ICompilationUnit
and IClassFile.
This class may be instantiated; it is not intended to be subclassed.
IJavaSourceLocation| Constructor and Description |
|---|
JavaProjectSourceLocation()
Deprecated.
Constructs a new empty source location to be initialized
by a memento.
|
JavaProjectSourceLocation(IJavaProject project)
Deprecated.
Constructs a new source location that will retrieve source
elements from the given Java project.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Deprecated.
|
Object |
findSourceElement(String name)
Deprecated.
Returns an object representing the source code
for a type with the specified name, or
null
if none could be found. |
IJavaProject |
getJavaProject()
Deprecated.
Returns the Java project associated with this source
location.
|
String |
getMemento()
Deprecated.
Returns a memento for this source location from which this
source location can be reconstructed.
|
int |
hashCode()
Deprecated.
|
void |
initializeFrom(String memento)
Deprecated.
Initializes this source location from the given memento.
|
getAdapterclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAdapterpublic JavaProjectSourceLocation()
public JavaProjectSourceLocation(IJavaProject project)
project - Java projectpublic Object findSourceElement(String name) throws CoreException
IJavaSourceLocationnull
if none could be found. The name is
a fully qualified type name, and may contain the '$'
character when referring to inner types. For example,
java.lang.String. The source element
returned is implementation specific - for example, a
resource, a local file, a zip file entry, etc.findSourceElement in interface IJavaSourceLocationname - fully qualified name of the type for which
source is being searched forCoreException - if an exception occurs while searching
for the specified source elementpublic IJavaProject getJavaProject()
public String getMemento() throws CoreException
IJavaSourceLocationgetMemento in interface IJavaSourceLocationCoreException - if unable to create a mementopublic void initializeFrom(String memento) throws CoreException
IJavaSourceLocationinitializeFrom in interface IJavaSourceLocationmemento - a memento generated by this source locationCoreException - if unable to initialize this source
locationCopyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.