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
public class ProjectSourceContainer extends ContainerSourceContainer
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
Fields Modifier and Type Field Description static String
TYPE_ID
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
Constructors Constructor Description ProjectSourceContainer(IProject project, boolean referenced)
Constructs a project source container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ISourceContainer[]
createSourceContainers()
Creates the source containers in this composite container.IProject
getProject()
Returns the project this source container references.ISourceContainerType
getType()
Returns this container's type.boolean
isComposite()
Returns whether this container is a composite container.boolean
isSearchReferencedProjects()
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 Detail
-
TYPE_ID
public static final String TYPE_ID
Unique identifier for the project source container type (valueorg.eclipse.debug.core.containerType.project
).
-
-
Constructor Detail
-
ProjectSourceContainer
public ProjectSourceContainer(IProject project, boolean referenced)
Constructs a project source container.- Parameters:
project
- the project to search for source inreferenced
- whether referenced projects should be considered
-
-
Method Detail
-
isSearchReferencedProjects
public boolean isSearchReferencedProjects()
Returns whether referenced projects are considered.- Returns:
- whether referenced projects are considered
-
getProject
public IProject getProject()
Returns the project this source container references.- Returns:
- the project this source container references
-
getType
public ISourceContainerType 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
protected ISourceContainer[] createSourceContainers() throws CoreException
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
-
-