public abstract class AbstractSourceContainer extends PlatformObject implements ISourceContainer
Clients implementing source containers should subclass this class.
| Constructor and Description |
|---|
AbstractSourceContainer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
abort(String message,
Throwable exception)
Throws an exception with the given message and underlying exception.
|
void |
dispose()
Disposes this source container.
|
protected ISourceLookupDirector |
getDirector()
Returns the source lookup director this source container registered
in, or
null if none. |
ISourceContainer[] |
getSourceContainers()
Returns the source containers this container is composed of.
|
protected ISourceContainerType |
getSourceContainerType(String id)
Returns the source container type identified by the given id,
or
null if none. |
void |
init(ISourceLookupDirector director)
Notification this source container has been added to the given
source lookup director.
|
boolean |
isComposite()
Returns whether this container is a composite container.
|
protected boolean |
isFindDuplicates()
Returns whether this container's source lookup director is configured
to search for duplicate source elements.
|
getAdapterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindSourceElements, getName, getTypegetAdapterpublic static final Object[] EMPTY
protected void abort(String message, Throwable exception) throws CoreException
message - error messageexception - underlying exception, or nullCoreExceptionpublic void dispose()
ISourceContainerdispose in interface ISourceContainerpublic ISourceContainer[] getSourceContainers() throws CoreException
ISourceContainergetSourceContainers in interface ISourceContainerCoreException - if unable to retrieve source containerspublic boolean isComposite()
ISourceContainerisComposite in interface ISourceContainerpublic void init(ISourceLookupDirector director)
ISourceContainerinit in interface ISourceContainerdirector - the director this container has been added toprotected ISourceLookupDirector getDirector()
null if none.null if noneprotected boolean isFindDuplicates()
protected ISourceContainerType getSourceContainerType(String id)
null if none.id - source container type identifiernullGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.