org.eclipse.debug.core.sourcelookup
and org.eclipse.debug.core.sourcelookup.containers
. This class
has been replaced by the following classes:
org.eclipse.debug.core.sourcelookup.containers.ArchiveSourceContainer
and org.eclipse.debug.core.sourcelookup.containers.ExternalArchiveSourceContainer
.@Deprecated public class ArchiveSourceLocation extends PlatformObject implements IJavaSourceLocation
ZipEntryStorage
.
This class may be instantiated.
IJavaSourceLocation
Constructor and Description |
---|
ArchiveSourceLocation()
Deprecated.
Constructs a new empty source location to be initialized with
a memento.
|
ArchiveSourceLocation(String archiveName,
String sourceRoot)
Deprecated.
Constructs a new source location that will retrieve source
elements from the zip file with the given name.
|
Modifier and Type | Method and Description |
---|---|
static void |
closeArchives()
Deprecated.
Closes all zip files that have been opened,
and removes them from the zip file cache.
|
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. |
protected ZipFile |
getArchive()
Deprecated.
Returns the archive associated with this source
location.
|
String |
getMemento()
Deprecated.
Returns a memento for this source location from which this
source location can be reconstructed.
|
String |
getName()
Deprecated.
Returns the name of the archive associated with this
source location
|
IPath |
getRootPath()
Deprecated.
Returns the location of the root source folder within
the archive, or
null if the root source
folder is the root of the archive |
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 ArchiveSourceLocation()
public ArchiveSourceLocation(String archiveName, String sourceRoot)
archiveName
- zip filesourceRoot
- a path to the root source folder in the
specified archive, or null
if the root source folder
is the root of the archivepublic static void closeArchives()
public 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 elementprotected ZipFile getArchive() throws IOException
IOException
- if unable to create the zip
file associated with this locationpublic IPath getRootPath()
null
if the root source
folder is the root of the archivenull
if the root source
folder is the root of the archivepublic String getName()
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.