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:
IAdaptable
,ISourceContainer
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 String
Unique 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 ISourceContainer[]
void
dispose()
boolean
Object[]
findSourceElements
(String name) Returns the Java project associated with this source container.getName()
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, warn
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 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
-
getJavaProject
Returns the Java project associated with this source container.- Returns:
- Java project
-
createSourceContainers
- Specified by:
createSourceContainers
in classCompositeSourceContainer
- Throws:
CoreException
-
equals
-
hashCode
public int hashCode() -
findSourceElements
- Specified by:
findSourceElements
in interfaceISourceContainer
- Overrides:
findSourceElements
in classCompositeSourceContainer
- Throws:
CoreException
-
dispose
public void dispose()- Specified by:
dispose
in interfaceISourceContainer
- Overrides:
dispose
in classCompositeSourceContainer
-