|
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
Common function for source containers.
Clients implementing source containers should subclass this class.
Field Summary | |
static Object[] |
EMPTY
|
Constructor Summary | |
AbstractSourceContainer()
|
Method Summary | |
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)
Notifiation 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. |
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 |
findSourceElements, getName, getType |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
Field Detail |
public static final Object[] EMPTY
Constructor Detail |
public AbstractSourceContainer()
Method Detail |
protected void abort(String message, Throwable exception) throws CoreException
message
- error messageexception
- underlying exception, or null
CoreException
public 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()
protected ISourceContainerType getSourceContainerType(String id)
null
if none.
id
- source container type identifier
null
|
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.