org.eclipse.debug.core.sourcelookup
and org.eclipse.debug.core.sourcelookup.containers
. This class
has been replaced by
org.eclipse.debug.core.sourcelookup.containers.DirectorySourceContainer
.@Deprecated public class DirectorySourceLocation extends PlatformObject implements IJavaSourceLocation
LocalFileStorage
.
This class may be instantiated.
IJavaSourceLocation
Constructor and Description |
---|
DirectorySourceLocation()
Deprecated.
Constructs a new empty source location to be initialized from
a memento.
|
DirectorySourceLocation(File directory)
Deprecated.
Constructs a new source location that will retrieve source
elements from the given directory.
|
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. |
File |
getDirectory()
Deprecated.
Returns the directory 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.
|
getAdapter
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAdapter
public DirectorySourceLocation()
public DirectorySourceLocation(File directory)
directory
- a directorypublic Object findSourceElement(String name) throws CoreException
IJavaSourceLocation
null
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 IJavaSourceLocation
name
- fully qualified name of the type for which
source is being searched forCoreException
- if an exception occurs while searching
for the specified source elementpublic File getDirectory()
public String getMemento() throws CoreException
IJavaSourceLocation
getMemento
in interface IJavaSourceLocation
CoreException
- if unable to create a mementopublic void initializeFrom(String memento) throws CoreException
IJavaSourceLocation
initializeFrom
in interface IJavaSourceLocation
memento
- a memento generated by this source locationCoreException
- if unable to initialize this source
location
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.