Class DefaultSourceContainer

All Implemented Interfaces:
IAdaptable, ISourceContainer

public class DefaultSourceContainer extends CompositeSourceContainer
A source container that computer the default source lookup path for a launch configuration on each launch using a launch configuration's associated source path computer.

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 default source container type (value org.eclipse.debug.core.containerType.default).
  • Constructor Details

    • DefaultSourceContainer

      public DefaultSourceContainer()
      Constructs a default source container.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getLaunchConfiguration

      protected ILaunchConfiguration getLaunchConfiguration()
      Returns the launch configuration for which a default source lookup path will be computed, or null if none.
      Returns:
      the launch configuration for which a default source lookup path will be computed, or null
    • getType

      public ISourceContainerType getType()
      Description copied from interface: ISourceContainer
      Returns this container's type.
      Returns:
      this container's type
    • getName

      public String getName()
      Description copied from interface: ISourceContainer
      The name of this source container that can be used for presentation purposes. For example, the name of a project.
      Returns:
      the name of this source 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.
      Specified by:
      createSourceContainers in class CompositeSourceContainer
      Returns:
      the array of ISourceContainers
      Throws:
      CoreException - if unable to create the containers