public class PackageUtil
extends java.lang.Object
Constructor and Description |
---|
PackageUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkSourceRootsConfigured(Module module) |
static boolean |
checkSourceRootsConfigured(Module module,
boolean askUserToSetupSourceRoots) |
static PsiDirectory |
findOrCreateDirectoryForPackage(Module module,
java.lang.String packageName,
PsiDirectory baseDir,
boolean askUserToCreate) |
static PsiDirectory |
findOrCreateDirectoryForPackage(Module module,
java.lang.String packageName,
PsiDirectory baseDir,
boolean askUserToCreate,
boolean filterSourceDirsForBaseTestDirectory) |
static PsiDirectory |
findOrCreateDirectoryForPackage(Project project,
java.lang.String packageName,
PsiDirectory baseDir,
boolean askUserToCreate)
|
static PsiDirectory |
findOrCreateSubdirectory(PsiDirectory directory,
java.lang.String directoryName) |
static PsiDirectory |
findPossiblePackageDirectoryInModule(Module module,
java.lang.String packageName) |
static PsiDirectory |
findPossiblePackageDirectoryInModule(Module module,
java.lang.String packageName,
boolean preferNonGeneratedRoots) |
static boolean |
isPackageInfoFile(PsiElement element) |
public static PsiDirectory findPossiblePackageDirectoryInModule(Module module, java.lang.String packageName)
public static PsiDirectory findPossiblePackageDirectoryInModule(Module module, java.lang.String packageName, boolean preferNonGeneratedRoots)
@Deprecated public static PsiDirectory findOrCreateDirectoryForPackage(Project project, java.lang.String packageName, PsiDirectory baseDir, boolean askUserToCreate) throws IncorrectOperationException
IncorrectOperationException
public static PsiDirectory findOrCreateDirectoryForPackage(Module module, java.lang.String packageName, PsiDirectory baseDir, boolean askUserToCreate) throws IncorrectOperationException
IncorrectOperationException
public static PsiDirectory findOrCreateDirectoryForPackage(Module module, java.lang.String packageName, PsiDirectory baseDir, boolean askUserToCreate, boolean filterSourceDirsForBaseTestDirectory) throws IncorrectOperationException
IncorrectOperationException
public static boolean checkSourceRootsConfigured(Module module)
public static boolean checkSourceRootsConfigured(Module module, boolean askUserToSetupSourceRoots)
public static PsiDirectory findOrCreateSubdirectory(PsiDirectory directory, java.lang.String directoryName)
public static boolean isPackageInfoFile(PsiElement element)