Class DefaultSourceContainer
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer
org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer
org.eclipse.debug.core.sourcelookup.containers.DefaultSourceContainer
- All Implemented Interfaces:
IAdaptable,ISourceContainer
A source container that computer the default source lookup path
for a launch configuration on each launch using a launch configuration's
associated source path computer.
Clients may instantiate this class.
- Since:
- 3.0
- Restriction:
- This class is not intended to be subclassed by clients.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringUnique identifier for the default source container type (valueorg.eclipse.debug.core.containerType.default).Fields inherited from class org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ISourceContainer[]Creates the source containers in this composite container.booleanprotected ILaunchConfigurationReturns the launch configuration for which a default source lookup path will be computed, ornullif none.getName()The name of this source container that can be used for presentation purposes.getType()Returns this container's type.inthashCode()Methods inherited from class org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer
dispose, findSourceElements, findSourceElements, getSourceContainers, isCompositeMethods inherited from class org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer
abort, getDirector, getSourceContainerType, init, isFindDuplicates, warnMethods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapterMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
Field Details
-
TYPE_ID
Unique identifier for the default source container type (valueorg.eclipse.debug.core.containerType.default).
-
-
Constructor Details
-
DefaultSourceContainer
public DefaultSourceContainer()Constructs a default source container.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getLaunchConfiguration
Returns the launch configuration for which a default source lookup path will be computed, ornullif none.- Returns:
- the launch configuration for which a default source lookup
path will be computed, or
null
-
getType
Description copied from interface:ISourceContainerReturns this container's type.- Returns:
- this container's type
-
getName
Description copied from interface:ISourceContainerThe name of this source container that can be used for presentation purposes. For example, the name of a project.- Returns:
- the name of this source container
-
createSourceContainers
Description copied from class:CompositeSourceContainerCreates the source containers in this composite container. Subclasses should override this methods.- Specified by:
createSourceContainersin classCompositeSourceContainer- Returns:
- the array of
ISourceContainers - Throws:
CoreException- if unable to create the containers
-