public class MoveClassesOrPackagesUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
buildDirectoryList(PackageWrapper aPackage,
java.util.List<? extends VirtualFile> contentSourceRoots,
java.util.LinkedHashSet<? super PsiDirectory> targetDirectories,
java.util.Map<PsiDirectory,java.lang.String> relativePathsToCreate) |
static PsiDirectory |
chooseDestinationPackage(Project project,
java.lang.String packageName,
PsiDirectory baseDir) |
static VirtualFile |
chooseSourceRoot(PackageWrapper targetPackage,
java.util.List<? extends VirtualFile> contentSourceRoots,
PsiDirectory initialDirectory) |
static PsiClass |
doMoveClass(PsiClass aClass,
PsiDirectory moveDestination) |
static PsiClass |
doMoveClass(PsiClass aClass,
PsiDirectory moveDestination,
boolean moveAllClassesInFile) |
static PsiPackage |
doMovePackage(PsiPackage aPackage,
MoveDestination moveDestination) |
static void |
findNonCodeUsages(boolean searchInStringsAndComments,
boolean searchInNonJavaFiles,
PsiElement element,
java.lang.String newQName,
java.util.ArrayList<? super UsageInfo> results)
|
static void |
findNonCodeUsages(PsiElement element,
SearchScope searchScope,
boolean searchInStringsAndComments,
boolean searchInNonJavaFiles,
java.lang.String newQName,
java.util.Collection<? super UsageInfo> results) |
static UsageInfo[] |
findUsages(PsiElement element,
boolean searchInStringsAndComments,
boolean searchInNonJavaFiles,
java.lang.String newQName)
Deprecated.
|
static UsageInfo [] |
findUsages(PsiElement element,
SearchScope searchScope,
boolean searchInStringsAndComments,
boolean searchInNonJavaFiles,
java.lang.String newQName) |
static void |
finishMoveClass(PsiClass aClass) |
static java.lang.String |
getPackageName(PackageWrapper aPackage) |
static void |
moveDirectoryRecursively(PsiDirectory dir,
PsiDirectory destination) |
static void |
prepareMoveClass(PsiClass aClass) |
@Deprecated public static UsageInfo[] findUsages(PsiElement element, boolean searchInStringsAndComments, boolean searchInNonJavaFiles, java.lang.String newQName)
findUsages(PsiElement, SearchScope, boolean, boolean, String)
public static UsageInfo [] findUsages(PsiElement element, SearchScope searchScope, boolean searchInStringsAndComments, boolean searchInNonJavaFiles, java.lang.String newQName)
@Deprecated public static void findNonCodeUsages(boolean searchInStringsAndComments, boolean searchInNonJavaFiles, PsiElement element, java.lang.String newQName, java.util.ArrayList<? super UsageInfo> results)
public static void findNonCodeUsages(PsiElement element, SearchScope searchScope, boolean searchInStringsAndComments, boolean searchInNonJavaFiles, java.lang.String newQName, java.util.Collection<? super UsageInfo> results)
public static PsiPackage doMovePackage(PsiPackage aPackage, MoveDestination moveDestination) throws IncorrectOperationException
IncorrectOperationException
public static void moveDirectoryRecursively(PsiDirectory dir, PsiDirectory destination) throws IncorrectOperationException
IncorrectOperationException
public static void prepareMoveClass(PsiClass aClass)
public static void finishMoveClass(PsiClass aClass)
public static PsiClass doMoveClass(PsiClass aClass, PsiDirectory moveDestination) throws IncorrectOperationException
IncorrectOperationException
public static PsiClass doMoveClass(PsiClass aClass, PsiDirectory moveDestination, boolean moveAllClassesInFile) throws IncorrectOperationException
IncorrectOperationException
public static java.lang.String getPackageName(PackageWrapper aPackage)
public static PsiDirectory chooseDestinationPackage(Project project, java.lang.String packageName, PsiDirectory baseDir)
public static VirtualFile chooseSourceRoot(PackageWrapper targetPackage, java.util.List<? extends VirtualFile> contentSourceRoots, PsiDirectory initialDirectory)
public static void buildDirectoryList(PackageWrapper aPackage, java.util.List<? extends VirtualFile> contentSourceRoots, java.util.LinkedHashSet<? super PsiDirectory> targetDirectories, java.util.Map<PsiDirectory,java.lang.String> relativePathsToCreate)