Class 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 Details

    • TYPE_ID

      public static final String TYPE_ID
      Unique identifier for the project source container type (value org.eclipse.debug.core.containerType.project).
  • Constructor Details

    • ProjectSourceContainer

      public ProjectSourceContainer(IProject project, boolean referenced)
      Constructs a project source container.
      Parameters:
      project - the project to search for source in
      referenced - 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

      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 interface ISourceContainer
      Overrides:
      isComposite in class ContainerSourceContainer
      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 class ContainerSourceContainer
      Returns:
      the array of ISourceContainers
      Throws:
      CoreException - if unable to create the containers