Class JavaProjectSourceContainer
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer
org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer
org.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.
- Since:
- 3.0
- Restriction:
- This class is not intended to be sub-classed by clients.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringUnique identifier for Java project source container type (valueorg.eclipse.jdt.launching.sourceContainer.javaProject).Fields inherited from class org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionJavaProjectSourceContainer(IJavaProject project) Constructs a source container on the given Java project. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.debug.core.sourcelookup.ISourceContainer[]voiddispose()booleanObject[]findSourceElements(String name) Returns the Java project associated with this source container.getName()org.eclipse.debug.core.sourcelookup.ISourceContainerTypegetType()inthashCode()Methods inherited from class org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer
findSourceElements, getSourceContainers, isCompositeMethods inherited from class org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer
abort, getDirector, getSourceContainerType, init, isFindDuplicates, warnMethods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapterMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
Field Details
-
TYPE_ID
Unique identifier for Java project source container type (valueorg.eclipse.jdt.launching.sourceContainer.javaProject).
-
-
Constructor Details
-
JavaProjectSourceContainer
Constructs a source container on the given Java project.- Parameters:
project- project to look for source in
-
-
Method Details
-
getName
-
getType
public org.eclipse.debug.core.sourcelookup.ISourceContainerType getType() -
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- Specified by:
createSourceContainersin classorg.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer- Throws:
org.eclipse.core.runtime.CoreException
-
equals
-
hashCode
public int hashCode() -
findSourceElements
- Specified by:
findSourceElementsin interfaceorg.eclipse.debug.core.sourcelookup.ISourceContainer- Overrides:
findSourceElementsin classorg.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer- Throws:
org.eclipse.core.runtime.CoreException
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.debug.core.sourcelookup.ISourceContainer- Overrides:
disposein classorg.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer
-