public class JavaProjectRootsUtil
extends java.lang.Object
Constructor and Description |
---|
JavaProjectRootsUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
collectSuitableDestinationSourceRoots(Module module,
java.util.List<? super VirtualFile> result) |
static java.util.Map<OrderEntry,OrderEntry> |
findExportedDependenciesReachableViaThisDependencyOnly(Module module,
Module dependency,
RootModelProvider rootModelProvider)
Returns order entries which are exported to
module from its direct dependency , and which aren't available via other dependencies. |
static GlobalSearchScope |
getScopeWithoutGeneratedSources(GlobalSearchScope baseScope,
Project project) |
static java.util.List<VirtualFile> |
getSuitableDestinationSourceRoots(Project project) |
static boolean |
isForGeneratedSources(SourceFolder sourceFolder) |
static boolean |
isInGeneratedCode(VirtualFile file,
Project project) |
static boolean |
isOutsideJavaSourceRoot(PsiFile psiFile) |
public static boolean isOutsideJavaSourceRoot(PsiFile psiFile)
public static java.util.List<VirtualFile> getSuitableDestinationSourceRoots(Project project)
public static void collectSuitableDestinationSourceRoots(Module module, java.util.List<? super VirtualFile> result)
public static boolean isForGeneratedSources(SourceFolder sourceFolder)
public static boolean isInGeneratedCode(VirtualFile file, Project project)
public static GlobalSearchScope getScopeWithoutGeneratedSources(GlobalSearchScope baseScope, Project project)
public static java.util.Map<OrderEntry,OrderEntry> findExportedDependenciesReachableViaThisDependencyOnly(Module module, Module dependency, RootModelProvider rootModelProvider)
module
from its direct dependency
, and which aren't available via other dependencies.dependency
parameter to a corresponding direct dependency of dependency
parameter.