public class RenameUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addConflictDescriptions(UsageInfo[] usages,
MultiMap<PsiElement,java.lang.String> conflicts) |
static void |
buildPackagePrefixChangedMessage(VirtualFile[] virtualFiles,
java.lang.StringBuffer message,
java.lang.String qualifiedName) |
static void |
checkRename(PsiElement element,
java.lang.String newName) |
static void |
doRename(PsiElement element,
java.lang.String newName,
UsageInfo[] usages,
Project project,
RefactoringElementListener listener) |
static void |
doRenameGenericNamedElement(PsiElement namedElement,
java.lang.String newName,
UsageInfo[] usages,
RefactoringElementListener listener) |
static UsageInfo [] |
findUsages(PsiElement element,
java.lang.String newName,
boolean searchInStringsAndComments,
boolean searchForTextOccurrences,
java.util.Map<? extends PsiElement,java.lang.String> allRenames) |
static UsageInfo [] |
findUsages(PsiElement element,
java.lang.String newName,
SearchScope searchScope,
boolean searchInStringsAndComments,
boolean searchForTextOccurrences,
java.util.Map<? extends PsiElement,java.lang.String> allRenames) |
static boolean |
hasNonCodeUsages(PsiElement element,
java.lang.String newName,
SearchScope searchScope,
boolean searchInStringsAndComments,
boolean searchForTextOccurrences) |
static boolean |
isValidName(Project project,
PsiElement psiElement,
java.lang.String newName) |
static java.util.List<UnresolvableCollisionUsageInfo> |
removeConflictUsages(java.util.Set<UsageInfo> usages) |
static void |
rename(UsageInfo info,
java.lang.String newName) |
static void |
renameNonCodeUsages(Project project,
NonCodeUsageInfo [] usages) |
static void |
showErrorMessage(IncorrectOperationException e,
PsiElement element,
Project project) |
public static UsageInfo [] findUsages(PsiElement element, java.lang.String newName, boolean searchInStringsAndComments, boolean searchForTextOccurrences, java.util.Map<? extends PsiElement,java.lang.String> allRenames)
public static UsageInfo [] findUsages(PsiElement element, java.lang.String newName, SearchScope searchScope, boolean searchInStringsAndComments, boolean searchForTextOccurrences, java.util.Map<? extends PsiElement,java.lang.String> allRenames)
public static boolean hasNonCodeUsages(PsiElement element, java.lang.String newName, SearchScope searchScope, boolean searchInStringsAndComments, boolean searchForTextOccurrences)
public static void buildPackagePrefixChangedMessage(VirtualFile[] virtualFiles, java.lang.StringBuffer message, java.lang.String qualifiedName)
public static void checkRename(PsiElement element, java.lang.String newName) throws IncorrectOperationException
IncorrectOperationException
public static void doRename(PsiElement element, java.lang.String newName, UsageInfo[] usages, Project project, RefactoringElementListener listener) throws IncorrectOperationException
IncorrectOperationException
public static void showErrorMessage(IncorrectOperationException e, PsiElement element, Project project)
public static void doRenameGenericNamedElement(PsiElement namedElement, java.lang.String newName, UsageInfo[] usages, RefactoringElementListener listener) throws IncorrectOperationException
IncorrectOperationException
public static void rename(UsageInfo info, java.lang.String newName) throws IncorrectOperationException
IncorrectOperationException
public static java.util.List<UnresolvableCollisionUsageInfo> removeConflictUsages(java.util.Set<UsageInfo> usages)
public static void addConflictDescriptions(UsageInfo[] usages, MultiMap<PsiElement,java.lang.String> conflicts)
public static void renameNonCodeUsages(Project project, NonCodeUsageInfo [] usages)
public static boolean isValidName(Project project, PsiElement psiElement, java.lang.String newName)