Class ClasspathContainerSourceContainer

  • All Implemented Interfaces:
    IAdaptable, ISourceContainer

    public class ClasspathContainerSourceContainer
    extends CompositeSourceContainer
    A source container for a classpath container.

    This class may be instantiated.

    Since:
    3.0
    Restriction:
    This class is not intended to be subclassed by clients.
    • Field Detail

      • TYPE_ID

        public static final java.lang.String TYPE_ID
        Unique identifier for Java project source container type (value org.eclipse.jdt.launching.sourceContainer.classpathContainer).
    • Constructor Detail

      • ClasspathContainerSourceContainer

        public ClasspathContainerSourceContainer​(IPath containerPath)
        Constructs a new source container for the given classpath container.
        Parameters:
        containerPath - classpath container path
    • Method Detail

      • getName

        public java.lang.String getName()
      • getPath

        public IPath getPath()
        Returns the classpath container's path
        Returns:
        classpath container's path
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getClasspathContainer

        public IClasspathContainer getClasspathContainer()
                                                  throws CoreException
        Returns the associated container or null if unavailable.
        Returns:
        classpath container or null
        Throws:
        CoreException - if unable to retrieve container