Class ArchiveSourceLocation
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.jdt.launching.sourcelookup.ArchiveSourceLocation
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable,IJavaSourceLocation
@Deprecated
public class ArchiveSourceLocation
extends org.eclipse.core.runtime.PlatformObject
implements IJavaSourceLocation
Deprecated.
Locates source elements in an archive (zip) in the local file system. Returns
instances of
ZipEntryStorage.
This class may be instantiated.
- Since:
- 2.0
- See Also:
- Restriction:
- This class is not intended to be sub-classed by clients.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.ArchiveSourceLocation(String archiveName, String sourceRoot) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDeprecated.booleanDeprecated.findSourceElement(String name) Deprecated.protected ZipFileDeprecated.Deprecated.getName()Deprecated.org.eclipse.core.runtime.IPathDeprecated.inthashCode()Deprecated.voidinitializeFrom(String memento) Deprecated.Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapterMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
Constructor Details
-
ArchiveSourceLocation
Deprecated.Constructs a new empty source location to be initialized with a memento. -
ArchiveSourceLocation
Deprecated.Constructs a new source location that will retrieve source elements from the zip file with the given name.- Parameters:
archiveName- zip filesourceRoot- a path to the root source folder in the specified archive, ornullif the root source folder is the root of the archive
-
-
Method Details
-
closeArchives
Deprecated.Closes all zip files that have been opened, and removes them from the zip file cache. This method is only to be called by the launching plug-in. -
findSourceElement
@Deprecated public Object findSourceElement(String name) throws org.eclipse.core.runtime.CoreException Deprecated.Description copied from interface:IJavaSourceLocationReturns an object representing the source code for a type with the specified name, ornullif 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.- Specified by:
findSourceElementin interfaceIJavaSourceLocation- Parameters:
name- fully qualified name of the type for which source is being searched for- Returns:
- source element
- Throws:
org.eclipse.core.runtime.CoreException- if an exception occurs while searching for the specified source element
-
getArchive
Deprecated.Returns the archive associated with this source location.- Returns:
- zip file
- Throws:
IOException- if unable to create the zip file associated with this location
-
getRootPath
Deprecated.Returns the location of the root source folder within the archive, ornullif the root source folder is the root of the archive- Returns:
- the location of the root source folder within
the archive, or
nullif the root source folder is the root of the archive
-
getName
Deprecated.Returns the name of the archive associated with this source location- Returns:
- the name of the archive associated with this source location
-
equals
Deprecated. -
hashCode
Deprecated. -
getMemento
Deprecated.Description copied from interface:IJavaSourceLocationReturns a memento for this source location from which this source location can be reconstructed.- Specified by:
getMementoin interfaceIJavaSourceLocation- Returns:
- a memento for this source location
- Throws:
org.eclipse.core.runtime.CoreException- if unable to create a memento
-
initializeFrom
@Deprecated public void initializeFrom(String memento) throws org.eclipse.core.runtime.CoreException Deprecated.Description copied from interface:IJavaSourceLocationInitializes this source location from the given memento.- Specified by:
initializeFromin interfaceIJavaSourceLocation- Parameters:
memento- a memento generated by this source location- Throws:
org.eclipse.core.runtime.CoreException- if unable to initialize this source location
-
org.eclipse.debug.core.sourcelookupandorg.eclipse.debug.core.sourcelookup.containers. This class has been replaced by the following classes:org.eclipse.debug.core.sourcelookup.containers.ArchiveSourceContainerandorg.eclipse.debug.core.sourcelookup.containers.ExternalArchiveSourceContainer.