Eclipse Platform
Release 3.1

org.eclipse.debug.ui.sourcelookup
Class WorkingSetSourceContainer

java.lang.Object
  extended byorg.eclipse.core.runtime.PlatformObject
      extended byorg.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer
          extended byorg.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer
              extended byorg.eclipse.debug.ui.sourcelookup.WorkingSetSourceContainer
All Implemented Interfaces:
IAdaptable, ISourceContainer

public class WorkingSetSourceContainer
extends CompositeSourceContainer

A working set in the workspace. Source is searched for in the projects (referenced projects) and folders (sub-folders) that are part of the working set.

This class may be instantiated; it is not intended to be subclassed.

Since:
3.0

Field Summary
static String TYPE_ID
          Unique identifier for the working set source container type (value org.eclipse.debug.ui.containerType.workingSet.)
 
Fields inherited from class org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer
EMPTY
 
Constructor Summary
WorkingSetSourceContainer(IWorkingSet workingSet)
          Creates a source container for the working set.
 
Method Summary
protected  ISourceContainer[] createSourceContainers()
          Creates the source containers in this composite container.
 boolean equals(Object obj)
           
 String getName()
          The name of this source container that can be used for presentation purposes.
 ISourceContainerType getType()
          Returns this container's type.
 int hashCode()
           
 
Methods inherited from class org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer
dispose, findSourceElements, findSourceElements, getSourceContainers, isComposite
 
Methods inherited from class org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer
abort, getDirector, getSourceContainerType, init, isFindDuplicates
 
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 working set source container type (value org.eclipse.debug.ui.containerType.workingSet.)

Constructor Detail

WorkingSetSourceContainer

public WorkingSetSourceContainer(IWorkingSet workingSet)
Creates a source container for the working set.

Parameters:
workingSet - the working set represented by this container
Method Detail

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

equals

public boolean equals(Object obj)

hashCode

public int hashCode()

getType

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

Returns:
this container's type

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
Throws:
CoreException - if unable to create the containers

Eclipse Platform
Release 3.1

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.