public class RenameJavaClassProcessor extends RenamePsiElementProcessor
DEFAULT, EP_NAME
Constructor and Description |
---|
RenameJavaClassProcessor() |
Modifier and Type | Method and Description |
---|---|
boolean |
canProcessElement(PsiElement element) |
void |
findCollisions(PsiElement element,
java.lang.String newName,
java.util.Map<? extends PsiElement,java.lang.String> allRenames,
java.util.List<UsageInfo> result) |
void |
findExistingNameConflicts(PsiElement element,
java.lang.String newName,
MultiMap<PsiElement,java.lang.String> conflicts) |
static void |
findSubmemberHidesMemberCollisions(PsiClass aClass,
java.lang.String newName,
java.util.List<UsageInfo> result) |
java.lang.String |
getHelpID(PsiElement element) |
java.lang.String |
getQualifiedNameAfterRename(PsiElement element,
java.lang.String newName,
boolean nonJava) |
Pair<java.lang.String,java.lang.String> |
getTextOccurrenceSearchStrings(PsiElement element,
java.lang.String newName) |
boolean |
isToSearchForTextOccurrences(PsiElement element) |
boolean |
isToSearchInComments(PsiElement psiElement) |
void |
prepareRenaming(PsiElement element,
java.lang.String newName,
java.util.Map<PsiElement,java.lang.String> allRenames,
SearchScope scope) |
void |
renameElement(PsiElement element,
java.lang.String newName,
UsageInfo [] usages,
RefactoringElementListener listener) |
void |
setToSearchForTextOccurrences(PsiElement element,
boolean enabled) |
void |
setToSearchInComments(PsiElement element,
boolean enabled) |
allForElement, createRenameDialog, createUsageInfo, findExistingNameConflicts, findReferences, findReferences, findReferences, forcesShowPreview, forElement, getElementToSearchInStringsAndComments, getPostRenameCallback, isInplaceRenameSupported, prepareRenaming, showRenamePreviewButton, substituteElementToRename, substituteElementToRename
public boolean canProcessElement(PsiElement element)
canProcessElement
in class RenamePsiElementProcessor
public void renameElement(PsiElement element, java.lang.String newName, UsageInfo [] usages, RefactoringElementListener listener) throws IncorrectOperationException
renameElement
in class RenamePsiElementProcessor
IncorrectOperationException
public Pair<java.lang.String,java.lang.String> getTextOccurrenceSearchStrings(PsiElement element, java.lang.String newName)
getTextOccurrenceSearchStrings
in class RenamePsiElementProcessor
public java.lang.String getQualifiedNameAfterRename(PsiElement element, java.lang.String newName, boolean nonJava)
getQualifiedNameAfterRename
in class RenamePsiElementProcessor
public void prepareRenaming(PsiElement element, java.lang.String newName, java.util.Map<PsiElement,java.lang.String> allRenames, SearchScope scope)
prepareRenaming
in class RenamePsiElementProcessor
public void findCollisions(PsiElement element, java.lang.String newName, java.util.Map<? extends PsiElement,java.lang.String> allRenames, java.util.List<UsageInfo> result)
findCollisions
in class RenamePsiElementProcessor
public static void findSubmemberHidesMemberCollisions(PsiClass aClass, java.lang.String newName, java.util.List<UsageInfo> result)
public void findExistingNameConflicts(PsiElement element, java.lang.String newName, MultiMap<PsiElement,java.lang.String> conflicts)
findExistingNameConflicts
in class RenamePsiElementProcessor
public java.lang.String getHelpID(PsiElement element)
getHelpID
in class RenamePsiElementProcessor
public boolean isToSearchInComments(PsiElement psiElement)
isToSearchInComments
in class RenamePsiElementProcessor
public void setToSearchInComments(PsiElement element, boolean enabled)
setToSearchInComments
in class RenamePsiElementProcessor
public boolean isToSearchForTextOccurrences(PsiElement element)
isToSearchForTextOccurrences
in class RenamePsiElementProcessor
public void setToSearchForTextOccurrences(PsiElement element, boolean enabled)
setToSearchForTextOccurrences
in class RenamePsiElementProcessor