public final class ProjectCoreUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Project |
theProject
Deprecated.
for internal use only, see
theOnlyOpenProject() |
| Constructor and Description |
|---|
ProjectCoreUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isProjectOrWorkspaceFile(VirtualFile file) |
static boolean |
isProjectOrWorkspaceFile(VirtualFile file,
FileType fileType) |
static Project |
theOnlyOpenProject()
Deprecated.
Please use
PsiElement.getProject() or ProjectManager.getOpenProjects() instead. |
@Deprecated public static volatile Project theProject
theOnlyOpenProject()public static boolean isProjectOrWorkspaceFile(VirtualFile file)
public static boolean isProjectOrWorkspaceFile(VirtualFile file, FileType fileType)
@Deprecated public static Project theOnlyOpenProject()
PsiElement.getProject() or ProjectManager.getOpenProjects() instead.null if no projects open, or several projects are open, or default project is created