Eclipse JDT
Release 3.0

org.eclipse.jdt.launching.sourcelookup.containers
Class JavaProjectSourceContainer

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.jdt.launching.sourcelookup.containers.JavaProjectSourceContainer
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.sourcelookup.ISourceContainer

public class JavaProjectSourceContainer
extends org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer

Java project source container. Searches for source in a project's source folders.

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

Since:
3.0

Field Summary
static String TYPE_ID
          Unique identifier for Java project source container type (value org.eclipse.jdt.launching.sourceContainer.javaProject).
 
Fields inherited from class org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer
EMPTY
 
Constructor Summary
JavaProjectSourceContainer(IJavaProject project)
          Constructs a source container on the given Java project.
 
Method Summary
protected  org.eclipse.debug.core.sourcelookup.ISourceContainer[] createSourceContainers()
           
 void dispose()
           
 boolean equals(Object obj)
           
 Object[] findSourceElements(String name)
           
 IJavaProject getJavaProject()
          Returns the Java project associated with this source container.
 String getName()
           
 org.eclipse.debug.core.sourcelookup.ISourceContainerType getType()
           
 int hashCode()
           
 
Methods inherited from class org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer
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 Java project source container type (value org.eclipse.jdt.launching.sourceContainer.javaProject).

Constructor Detail

JavaProjectSourceContainer

public JavaProjectSourceContainer(IJavaProject project)
Constructs a source container on the given Java project.

Parameters:
project - project to look for source in
Method Detail

getName

public String getName()

getType

public org.eclipse.debug.core.sourcelookup.ISourceContainerType getType()

getJavaProject

public IJavaProject getJavaProject()
Returns the Java project associated with this source container.

Returns:
Java project

createSourceContainers

protected org.eclipse.debug.core.sourcelookup.ISourceContainer[] createSourceContainers()
                                                                                 throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

equals

public boolean equals(Object obj)

hashCode

public int hashCode()

findSourceElements

public Object[] findSourceElements(String name)
                            throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

dispose

public void dispose()

Eclipse JDT
Release 3.0

Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.