public class ExternalFoldersManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
IFolder |
addFolder(IPath externalFolderPath,
boolean scheduleForCreation) |
void |
cleanUp(IProgressMonitor monitor) |
IProject |
createExternalFoldersProject(IProgressMonitor monitor) |
IFolder |
createLinkFolder(IPath externalFolderPath,
boolean refreshIfExistAlready,
IProgressMonitor monitor) |
void |
createPendingFolders(IProgressMonitor monitor) |
static java.util.Set<IPath> |
getExternalFolders(IClasspathEntry[] classpath)
Returns a set of external paths to external folders referred to on the given classpath.
|
static ExternalFoldersManager |
getExternalFoldersManager() |
IProject |
getExternalFoldersProject() |
IFolder |
getFolder(IPath externalFolderPath) |
static boolean |
isExternalFolderPath(IPath externalPath)
Returns
true if the provided path is a folder external to the project. |
static boolean |
isInternalPathForExternalFolder(IPath resourcePath) |
void |
refreshReferences(IProject[] sourceProjects,
IProgressMonitor monitor) |
void |
refreshReferences(IProject source,
IProgressMonitor monitor) |
IFolder |
removeFolder(IPath externalFolderPath) |
boolean |
removePendingFolder(java.lang.Object externalPath)
Try to remove the argument from the list of folders pending for creation.
|
public static ExternalFoldersManager getExternalFoldersManager()
public static java.util.Set<IPath> getExternalFolders(IClasspathEntry[] classpath)
null if there are none.public static boolean isExternalFolderPath(IPath externalPath)
true if the provided path is a folder external to the project.
The path is expected to be one matching the IClasspathEntry.CPE_LIBRARY case in
IClasspathEntry.getPath() definition.public static boolean isInternalPathForExternalFolder(IPath resourcePath)
public IFolder addFolder(IPath externalFolderPath,
boolean scheduleForCreation)
public boolean removePendingFolder(java.lang.Object externalPath)
externalPath - to link topublic IFolder createLinkFolder(IPath externalFolderPath,
boolean refreshIfExistAlready,
IProgressMonitor monitor)
throws CoreException
CoreExceptionpublic void createPendingFolders(IProgressMonitor monitor)
throws JavaModelException
JavaModelExceptionpublic void cleanUp(IProgressMonitor monitor)
throws CoreException
CoreExceptionpublic IProject getExternalFoldersProject()
public IProject createExternalFoldersProject(IProgressMonitor monitor)
throws CoreException
CoreExceptionpublic IFolder getFolder(IPath externalFolderPath)
public void refreshReferences(IProject[] sourceProjects,
IProgressMonitor monitor)
public void refreshReferences(IProject source,
IProgressMonitor monitor)
public IFolder removeFolder(IPath externalFolderPath)