|
Eclipse Platform Release 3.6 |
|||||||||
| 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.ContainerSourceContainer
public abstract class ContainerSourceContainer
A source container for a container in the workspace. Source elements are searched for within this container and optionally nested containers.
Names specified in findSourceElements method can
be simple or qualified. When a name is qualified, a file will
be searched for relative to this container, and optionally
nested containers.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer |
|---|
EMPTY |
| Constructor Summary | |
|---|---|
ContainerSourceContainer(IContainer container,
boolean subfolders)
Constructs a source container on the given workspace container. |
|
| Method Summary | |
|---|---|
protected ISourceContainer[] |
createSourceContainers()
Creates the source containers in this composite container. |
boolean |
equals(java.lang.Object obj)
|
java.lang.Object[] |
findSourceElements(java.lang.String name)
Returns a collection of source elements in this container corresponding to the given name. |
IContainer |
getContainer()
Returns the workspace container this source container is rooted at. |
java.lang.String |
getName()
The name of this source container that can be used for presentation purposes. |
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, warn |
| 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.debug.core.sourcelookup.ISourceContainer |
|---|
getType |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Constructor Detail |
|---|
public ContainerSourceContainer(IContainer container,
boolean subfolders)
container - the container to search for source insubfolders - whether nested folders should be searched
for source elements| Method Detail |
|---|
public IContainer getContainer()
public java.lang.Object[] findSourceElements(java.lang.String name)
throws CoreException
ISourceContainerisFindDuplicates().
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 ISourceContainerfindSourceElements in class CompositeSourceContainername - the name of the source element to search for
CoreException - if an exception occurs while searching for source elementspublic java.lang.String getName()
ISourceContainer
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isComposite()
ISourceContainer
isComposite in interface ISourceContainerisComposite in class CompositeSourceContainer
protected ISourceContainer[] createSourceContainers()
throws CoreException
CompositeSourceContainer
createSourceContainers in class CompositeSourceContainerCoreException - if unable to create the containers
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.