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 error 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 should search for duplicate source
elements.
|
protected void |
warn(String message,
Throwable exception)
Throws a warning exception with the given message and underlying exception.
|
getAdapter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findSourceElements, getName, getType
getAdapter
public static final Object[] EMPTY
protected void abort(String message, Throwable exception) throws CoreException
message
- error messageexception
- underlying exception, or null
CoreException
- if a problem is encounteredprotected void warn(String message, Throwable exception) throws CoreException
message
- error messageexception
- underlying exception, or null
CoreException
- if a problem is encounteredpublic void dispose()
ISourceContainer
dispose
in interface ISourceContainer
public ISourceContainer[] getSourceContainers() throws CoreException
ISourceContainer
getSourceContainers
in interface ISourceContainer
CoreException
- if unable to retrieve source containerspublic boolean isComposite()
ISourceContainer
isComposite
in interface ISourceContainer
public void init(ISourceLookupDirector director)
ISourceContainer
init
in interface ISourceContainer
director
- the director this container has been added toprotected ISourceLookupDirector getDirector()
null
if none.null
if noneprotected boolean isFindDuplicates()
AbstractSourceLookupParticipant
.protected ISourceContainerType getSourceContainerType(String id)
null
if none.id
- source container type identifiernull
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.