ZipEntryStorageas source elements.
Clients may instantiate this class.
- This class is not intended to be subclassed by clients.
Field SummaryModifier and TypeFieldDescription
static final StringUnique identifier for the archive source container type (value
Method SummaryModifier and TypeMethodDescription
dispose()Disposes this source container.
ObjectReturns a collection of source elements in this container corresponding to the given name.
getFile()Returns the associated file in the workspace.
getName()The name of this source container that can be used for presentation purposes.
getType()Returns this container's type.
voidNotification this source container has been added to the given source lookup director.
booleanReturns whether root paths are automatically detected in this archive source container.
Methods inherited from class org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer
abort, getDirector, getSourceContainers, getSourceContainerType, isComposite, isFindDuplicates, warn
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
TYPE_IDpublic static final String TYPE_IDUnique identifier for the archive source container type (value
(IFile archive, boolean detectRootPath)Creates an archive source container on the given file.
archive- archive in the workspace
detectRootPath- whether a root path should be detected. When
true, searching is performed relative to a root path within the archive based on fully qualified file names. The root path is automatically determined when the first successful search is performed. For example, when searching for a file named
a/b/c.d, and an entry in the archive named
r/a/b/c.dexists, the root path is set to
r. From that point on, searching is performed relative to
false, searching is performed by matching file names as suffixes to the entries in the archive.
getNamepublic String getName()The name of this source container that can be used for presentation purposes. For example, the name of a project.
- the name of this source container
getFilepublic IFile getFile()Returns the associated file in the workspace.
- associated file in the workspace
getTypepublic ISourceContainerType getType()Returns this container's type.
- this container's type
equalspublic boolean equals
hashCodepublic int hashCode()
findSourceElementsReturns a collection of source elements in this container corresponding to the given name. Returns an empty collection if no source elements are found. This source container's source lookup director specifies if duplicate source elements should be searched for, via
falsethe returned collection should contain at most one source element. If this is a composite container, the containers contained by this container are also searched.
The format of the given name is implementation specific but generally conforms to the format of a file name. If a source container does not recognize the name format provided, an empty collection should be returned. A source container may or may not require names to be fully qualified (i.e. be qualified with directory names).
name- the name of the source element to search for
- a collection of source elements corresponding to the given name
CoreException- if an exception occurs while searching for source elements
initpublic void init
(ISourceLookupDirector director)Notification this source container has been added to the given source lookup director.
disposepublic void dispose()Disposes this source container. This method is called when the source director associated with this source container is disposed.
isDetectRootpublic boolean isDetectRoot()Returns whether root paths are automatically detected in this archive source container.
- whether root paths are automatically detected in this archive source container