|
Eclipse Platform Release 3.0 |
||||||||||
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
A source container of source containers.
Clients implementing composite source containers should subclass this class.
Field Summary |
Fields inherited from class org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer |
EMPTY |
Constructor Summary | |
CompositeSourceContainer()
|
Method Summary | |
protected abstract ISourceContainer[] |
createSourceContainers()
Creates the source containers in this composite container. |
void |
dispose()
Disposes this source container. |
Object[] |
findSourceElements(String name)
Returns a collection of source elements in this container corresponding to the given name. |
protected Object[] |
findSourceElements(String name,
ISourceContainer[] containers)
Returns a collection of source elements in the given containers corresponding to the given name. |
ISourceContainer[] |
getSourceContainers()
Returns the source containers this container is composed of. |
boolean |
isComposite()
Returns whether this container is a composite container. |
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.debug.core.sourcelookup.ISourceContainer |
getName, getType |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
Constructor Detail |
public CompositeSourceContainer()
Method Detail |
public boolean isComposite()
ISourceContainer
isComposite
in interface ISourceContainer
isComposite
in class AbstractSourceContainer
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).
name
- the name of the source element to search for
CoreException
- if an exception occurrs while searching for source elementsprotected Object[] findSourceElements(String name, ISourceContainer[] containers) throws CoreException
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).
name
- the name of the source element to search forcontainers
- the containers to search
CoreException
- if an exception occurrs while searching for source elementsprotected abstract ISourceContainer[] createSourceContainers() throws CoreException
CoreException
- if unable to create the containerspublic ISourceContainer[] getSourceContainers() throws CoreException
ISourceContainer
getSourceContainers
in interface ISourceContainer
getSourceContainers
in class AbstractSourceContainer
CoreException
public void dispose()
ISourceContainer
dispose
in interface ISourceContainer
dispose
in class AbstractSourceContainer
|
Eclipse Platform Release 3.0 |
||||||||||
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, 2004. All rights reserved.