Class ProjectSourceContainer
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.ContainerSourceContainer
org.eclipse.debug.core.sourcelookup.containers.ProjectSourceContainer
- All Implemented Interfaces:
IAdaptable
,ISourceContainer
A project in the workspace. Source is searched for in the root project
folder and all folders within the project recursively. Optionally,
referenced projects may be searched as well.
Clients may instantiate this class.
- Since:
- 3.0
- Restriction:
- This class is not intended to be subclassed by clients.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Unique identifier for the project source container type (valueorg.eclipse.debug.core.containerType.project
).Fields inherited from class org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer
EMPTY
-
Constructor Summary
ConstructorDescriptionProjectSourceContainer
(IProject project, boolean referenced) Constructs a project source container. -
Method Summary
Modifier and TypeMethodDescriptionprotected ISourceContainer[]
Creates the source containers in this composite container.Returns the project this source container references.getType()
Returns this container's type.boolean
Returns whether this container is a composite container.boolean
Returns whether referenced projects are considered.Methods inherited from class org.eclipse.debug.core.sourcelookup.containers.ContainerSourceContainer
equals, findSourceElements, getContainer, getName, hashCode
Methods inherited from class org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer
dispose, findSourceElements, getSourceContainers
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
Field Details
-
TYPE_ID
Unique identifier for the project source container type (valueorg.eclipse.debug.core.containerType.project
).
-
-
Constructor Details
-
ProjectSourceContainer
Constructs a project source container.- Parameters:
project
- the project to search for source inreferenced
- whether referenced projects should be considered
-
-
Method Details
-
isSearchReferencedProjects
public boolean isSearchReferencedProjects()Returns whether referenced projects are considered.- Returns:
- whether referenced projects are considered
-
getProject
Returns the project this source container references.- Returns:
- the project this source container references
-
getType
Description copied from interface:ISourceContainer
Returns this container's type.- Returns:
- this container's type
-
isComposite
public boolean isComposite()Description copied from interface:ISourceContainer
Returns whether this container is a composite container. A composite container is composed of other source containers. For example, a workspace source container may be composed of project source containers.- Specified by:
isComposite
in interfaceISourceContainer
- Overrides:
isComposite
in classContainerSourceContainer
- Returns:
- whether this container is a composite container
-
createSourceContainers
Description copied from class:CompositeSourceContainer
Creates the source containers in this composite container. Subclasses should override this methods.- Overrides:
createSourceContainers
in classContainerSourceContainer
- Returns:
- the array of
ISourceContainer
s - Throws:
CoreException
- if unable to create the containers
-