|
Eclipse JDT 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.core.runtime.PlatformObject | +--org.eclipse.jdt.launching.sourcelookup.ArchiveSourceLocation
Locates source elements in an archive (zip) in the local file system. Returns
instances of ZipEntryStorage
.
This class may be instantiated; it is not intended to be subclassed.
IJavaSourceLocation
Constructor Summary | |
ArchiveSourceLocation()
Constructs a new empty source location to be initialized with a memento. |
|
ArchiveSourceLocation(String archiveName,
String sourceRoot)
Constructs a new source location that will retrieve source elements from the zip file with the given name. |
Method Summary | |
static void |
closeArchives()
Closes all zip files that have been opened, and removes them from the zip file cache. |
boolean |
equals(Object object)
|
Object |
findSourceElement(String name)
Returns an object representing the source code for a type with the specified name, or null
if none could be found. |
protected ZipFile |
getArchive()
Returns the archive associated with this source location. |
String |
getMemento()
Returns a memento for this source location from which this source location can be reconstructed. |
String |
getName()
Returns the name of the archive associated with this source location |
IPath |
getRootPath()
Returns the location of the root source folder within the archive, or null if the root source
folder is the root of the arhcive |
int |
hashCode()
|
void |
initializeFrom(String memento)
Initializes this source location from the given memento. |
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
getAdapter |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
Constructor Detail |
public ArchiveSourceLocation()
public ArchiveSourceLocation(String archiveName, String sourceRoot)
archive
- 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 archiveMethod Detail |
public 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
IJavaSourceLocation.findSourceElement(String)
protected ZipFile getArchive() throws IOException
public IPath getRootPath()
null
if the root source
folder is the root of the arhcivenull
if the root source
folder is the root of the arhcivepublic String getName()
public boolean equals(Object object)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String getMemento() throws CoreException
IJavaSourceLocation
getMemento
in interface IJavaSourceLocation
IJavaSourceLocation.getMemento()
public void initializeFrom(String memento) throws CoreException
IJavaSourceLocation
initializeFrom
in interface IJavaSourceLocation
IJavaSourceLocation.initializeFrom(String)
|
Eclipse JDT 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |