public class ProjectRootsUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ExcludeFolder |
findExcludeFolder(Module module,
VirtualFile root) |
static SourceFolder |
findSourceFolder(Module module,
VirtualFile root) |
static java.lang.String |
findUnloadedModuleByContentRoot(VirtualFile root,
Project project) |
static java.lang.String |
findUnloadedModuleByFile(VirtualFile file,
Project project) |
static SourceFolder |
getModuleSourceRoot(VirtualFile root,
Project project) |
static boolean |
isInSource(PsiDirectory directory) |
static boolean |
isInSource(VirtualFile directoryFile,
Project project) |
static boolean |
isInTestSource(PsiFile file) |
static boolean |
isInTestSource(VirtualFile directoryFile,
Project project) |
static boolean |
isLibraryRoot(VirtualFile directoryFile,
Project project) |
static boolean |
isModuleContentRoot(PsiDirectory directory) |
static boolean |
isModuleContentRoot(VirtualFile directoryFile,
Project project) |
static boolean |
isModuleSourceRoot(VirtualFile virtualFile,
Project project) |
static boolean |
isOutsideSourceRoot(PsiFile psiFile) |
static boolean |
isProjectHome(PsiDirectory psiDirectory) |
static boolean |
isSourceRoot(PsiDirectory psiDirectory) |
static boolean |
isSourceRoot(VirtualFile directoryFile,
Project project) |
public static boolean isSourceRoot(PsiDirectory psiDirectory)
public static boolean isSourceRoot(VirtualFile directoryFile, Project project)
public static boolean isInSource(PsiDirectory directory)
public static boolean isInSource(VirtualFile directoryFile, Project project)
public static boolean isInTestSource(PsiFile file)
public static boolean isInTestSource(VirtualFile directoryFile, Project project)
public static boolean isModuleSourceRoot(VirtualFile virtualFile, Project project)
public static SourceFolder getModuleSourceRoot(VirtualFile root, Project project)
public static boolean isLibraryRoot(VirtualFile directoryFile, Project project)
public static boolean isModuleContentRoot(PsiDirectory directory)
public static boolean isModuleContentRoot(VirtualFile directoryFile, Project project)
public static java.lang.String findUnloadedModuleByContentRoot(VirtualFile root, Project project)
public static java.lang.String findUnloadedModuleByFile(VirtualFile file, Project project)
public static boolean isProjectHome(PsiDirectory psiDirectory)
public static boolean isOutsideSourceRoot(PsiFile psiFile)
public static SourceFolder findSourceFolder(Module module, VirtualFile root)
public static ExcludeFolder findExcludeFolder(Module module, VirtualFile root)