public class WorkspaceProjectSourceContainers
extends java.lang.Object
The factory creates both project and project classpath entry containers. Both projects and project classpath entries can be identified by their filesystem location and, if the location is a file, by the file SHA1 checksum.
The factory maintains up-to-date registry of workspace projects and their classpath entries and can be used to create source containers fast enough to be used from UI thread.
| Constructor and Description |
|---|
WorkspaceProjectSourceContainers() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ISourceContainer |
createClasspathEntryContainer(java.io.File projectLocation,
java.io.File entryLocation)
Creates and returns new source container for the workspace project classpath entry identified by the given project and entry locations.
|
ISourceContainer |
createProjectContainer(java.io.File projectLocation)
Creates and returns new source containers for the workspace project identified by the given location.
|
protected java.util.List<IWorkspaceProjectDescriber> |
getJavaProjectDescribers() |
void |
initialize(IProgressMonitor monitor) |
public ISourceContainer createProjectContainer(java.io.File projectLocation)
null if there is no such
workspace project.public ISourceContainer createClasspathEntryContainer(java.io.File projectLocation,
java.io.File entryLocation)
null if there is no such project classpath entry or if the classpath entry does not have associated sources.public void initialize(IProgressMonitor monitor)
throws CoreException
CoreExceptionpublic void close()
protected java.util.List<IWorkspaceProjectDescriber> getJavaProjectDescribers()