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 Detail

      • TYPE_ID

        public static final String TYPE_ID
        Unique identifier for the project source container type (value org.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 in
        referenced - 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
      • 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