public class RenamePsiPackageProcessor extends RenamePsiElementProcessor
DEFAULT, EP_NAME
Constructor and Description |
---|
RenamePsiPackageProcessor() |
Modifier and Type | Method and Description |
---|---|
boolean |
canProcessElement(PsiElement element) |
RenameDialog |
createRenameDialog(Project project,
PsiElement element,
PsiElement nameSuggestionContext,
Editor editor) |
static MoveDirectoryWithClassesProcessor |
createRenameMoveProcessor(java.lang.String newName,
PsiPackage psiPackage,
boolean searchInComments,
boolean searchInNonJavaFiles) |
void |
findExistingNameConflicts(PsiElement element,
java.lang.String newName,
MultiMap<PsiElement,java.lang.String> conflicts) |
java.lang.String |
getHelpID(PsiElement element) |
static java.lang.String |
getPackageQualifiedNameAfterRename(PsiPackage element,
java.lang.String newName,
boolean nonJava) |
java.lang.Runnable |
getPostRenameCallback(PsiElement element,
java.lang.String newName,
RefactoringElementListener listener) |
java.lang.String |
getQualifiedNameAfterRename(PsiElement element,
java.lang.String newName,
boolean nonJava) |
boolean |
isToSearchForTextOccurrences(PsiElement element) |
boolean |
isToSearchInComments(PsiElement psiElement) |
static void |
preparePackageRenaming(PsiPackage psiPackage,
java.lang.String newName,
java.util.Map<PsiElement,java.lang.String> allRenames) |
void |
prepareRenaming(PsiElement element,
java.lang.String newName,
java.util.Map<PsiElement,java.lang.String> allRenames)
Builds the complete set of elements to be renamed during the refactoring.
|
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, createUsageInfo, findCollisions, findExistingNameConflicts, findReferences, findReferences, findReferences, forcesShowPreview, forElement, getElementToSearchInStringsAndComments, getTextOccurrenceSearchStrings, isInplaceRenameSupported, prepareRenaming, showRenamePreviewButton, substituteElementToRename, substituteElementToRename
public boolean canProcessElement(PsiElement element)
canProcessElement
in class RenamePsiElementProcessor
public RenameDialog createRenameDialog(Project project, PsiElement element, PsiElement nameSuggestionContext, Editor editor)
createRenameDialog
in class RenamePsiElementProcessor
public static MoveDirectoryWithClassesProcessor createRenameMoveProcessor(java.lang.String newName, PsiPackage psiPackage, boolean searchInComments, boolean searchInNonJavaFiles)
public void renameElement(PsiElement element, java.lang.String newName, UsageInfo [] usages, RefactoringElementListener listener) throws IncorrectOperationException
renameElement
in class RenamePsiElementProcessor
IncorrectOperationException
public java.lang.String getQualifiedNameAfterRename(PsiElement element, java.lang.String newName, boolean nonJava)
getQualifiedNameAfterRename
in class RenamePsiElementProcessor
public static java.lang.String getPackageQualifiedNameAfterRename(PsiPackage element, java.lang.String newName, boolean nonJava)
public void findExistingNameConflicts(PsiElement element, java.lang.String newName, MultiMap<PsiElement,java.lang.String> conflicts)
findExistingNameConflicts
in class RenamePsiElementProcessor
public void prepareRenaming(PsiElement element, java.lang.String newName, java.util.Map<PsiElement,java.lang.String> allRenames)
RenamePsiElementProcessor
prepareRenaming
in class RenamePsiElementProcessor
element
- the base element for the refactoring.newName
- the name into which the element is being renamed.allRenames
- the map (from element to its new name) into which all additional elements to be renamed should be stored.public static void preparePackageRenaming(PsiPackage psiPackage, java.lang.String newName, java.util.Map<PsiElement,java.lang.String> allRenames)
public java.lang.Runnable getPostRenameCallback(PsiElement element, java.lang.String newName, RefactoringElementListener listener)
getPostRenameCallback
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