|
Eclipse Platform Release 3.3 |
|||||||||||
| 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, warn |
| 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 ISourceContainerisComposite in class AbstractSourceContainer
public Object[] findSourceElements(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).
name - the name of the source element to search for
CoreException - if an exception occurs while searching for source elements
protected 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 occurs while searching for source elements
protected abstract ISourceContainer[] createSourceContainers()
throws CoreException
CoreException - if unable to create the containers
public ISourceContainer[] getSourceContainers()
throws CoreException
ISourceContainer
getSourceContainers in interface ISourceContainergetSourceContainers in class AbstractSourceContainerCoreExceptionpublic void dispose()
ISourceContainer
dispose in interface ISourceContainerdispose in class AbstractSourceContainer
|
Eclipse Platform Release 3.3 |
|||||||||||
| 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, 2007. All rights reserved.