public abstract class ProjectLocator
extends java.lang.Object
Constructor and Description |
---|
ProjectLocator() |
Modifier and Type | Method and Description |
---|---|
static ProjectLocator |
getInstance() |
abstract java.util.Collection<Project> |
getProjectsForFile(VirtualFile file)
Gets all open projects containing the given file.
|
abstract Project |
guessProjectForFile(VirtualFile file)
Returns an open project which contains the given file.
|
static AccessToken |
runWithPreferredProject(VirtualFile file,
Project preferredProject) |
public static ProjectLocator getInstance()
public abstract Project guessProjectForFile(VirtualFile file)
file
- file to be located in projects.public abstract java.util.Collection<Project> getProjectsForFile(VirtualFile file)
file
- file to be located in projects.public static AccessToken runWithPreferredProject(VirtualFile file, Project preferredProject)