|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer
org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer
org.eclipse.debug.core.sourcelookup.containers.DirectorySourceContainer
A directory in the local file system. Source elements returned
from findSourceElements(...)
are instances
of LocalFileStorage
.
Clients may instantiate this class. This class is not intended to be subclassed.
Field Summary | |
---|---|
static String |
TYPE_ID
Unique identifier for the directory source container type (value org.eclipse.debug.core.containerType.directory ). |
Fields inherited from class org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer |
---|
EMPTY |
Constructor Summary | |
---|---|
DirectorySourceContainer(File dir,
boolean subfolders)
Constructs an external folder container for the directory identified by the given file. |
|
DirectorySourceContainer(IPath dirPath,
boolean subfolders)
Constructs an external folder container for the directory identified by the given path. |
Method Summary | |
---|---|
protected ISourceContainer[] |
createSourceContainers()
Creates the source containers in this composite container. |
boolean |
equals(Object obj)
|
Object[] |
findSourceElements(String name)
Returns a collection of source elements in this container corresponding to the given name. |
File |
getDirectory()
Returns the root directory in the local file system associated with this source container. |
String |
getName()
The name of this source container that can be used for presentation purposes. |
ISourceContainerType |
getType()
Returns this container's type. |
int |
hashCode()
|
boolean |
isComposite()
Returns whether this container is a composite container. |
Methods inherited from class org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer |
---|
dispose, findSourceElements, getSourceContainers |
Methods inherited from class org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer |
---|
abort, getDirector, getSourceContainerType, init, isFindDuplicates |
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 |
Field Detail |
public static final String TYPE_ID
org.eclipse.debug.core.containerType.directory
).
Constructor Detail |
public DirectorySourceContainer(IPath dirPath, boolean subfolders)
dirPath
- path to a directory in the local file systemsubfolders
- whether folders within the root directory
should be searched for source elementspublic DirectorySourceContainer(File dir, boolean subfolders)
dir
- a directory in the local file systemsubfolders
- whether folders within the root directory
should be searched for source elementsMethod Detail |
public String getName()
ISourceContainer
public File getDirectory()
public ISourceContainerType getType()
ISourceContainer
public Object[] findSourceElements(String name) throws CoreException
ISourceContainer
isFindDuplicates()
.
When false
the 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).
findSourceElements
in interface ISourceContainer
findSourceElements
in class CompositeSourceContainer
CoreException
public boolean isComposite()
ISourceContainer
isComposite
in interface ISourceContainer
isComposite
in class CompositeSourceContainer
public boolean equals(Object obj)
public int hashCode()
protected ISourceContainer[] createSourceContainers() throws CoreException
CompositeSourceContainer
createSourceContainers
in class CompositeSourceContainer
CoreException
- if unable to create the containers
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.