public class RenameRefactoringImpl extends RefactoringImpl<RenameProcessor> implements RenameRefactoring
myProcessor
Constructor and Description |
---|
RenameRefactoringImpl(Project project,
PsiElement element,
java.lang.String newName,
boolean toSearchInComments,
boolean toSearchInNonJavaFiles) |
Modifier and Type | Method and Description |
---|---|
void |
addElement(PsiElement element,
java.lang.String newName)
Add element to be renamed.
|
java.util.Set<PsiElement> |
getElements() |
java.util.Collection<java.lang.String> |
getNewNames() |
boolean |
hasNonCodeUsages() |
boolean |
isSearchInComments() |
boolean |
isSearchInNonJavaFiles() |
void |
respectAllAutomaticRenames() |
void |
respectEnabledAutomaticRenames() |
void |
setSearchInComments(boolean value) |
void |
setSearchInNonJavaFiles(boolean value) |
doRefactoring, findUsages, isInteractive, isPreviewUsages, preprocessUsages, run, setInteractive, setPreviewUsages, shouldPreviewUsages
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doRefactoring, findUsages, isInteractive, isPreviewUsages, preprocessUsages, run, setInteractive, setPreviewUsages, shouldPreviewUsages
public RenameRefactoringImpl(Project project, PsiElement element, java.lang.String newName, boolean toSearchInComments, boolean toSearchInNonJavaFiles)
public void addElement(PsiElement element, java.lang.String newName)
RenameRefactoring
addElement
in interface RenameRefactoring
element
- element to be renamed.newName
- new name for the element.public java.util.Set<PsiElement> getElements()
getElements
in interface RenameRefactoring
public java.util.Collection<java.lang.String> getNewNames()
getNewNames
in interface RenameRefactoring
public void setSearchInComments(boolean value)
setSearchInComments
in interface RenameRefactoring
public void setSearchInNonJavaFiles(boolean value)
setSearchInNonJavaFiles
in interface RenameRefactoring
public boolean isSearchInComments()
isSearchInComments
in interface RenameRefactoring
public boolean isSearchInNonJavaFiles()
isSearchInNonJavaFiles
in interface RenameRefactoring
public void respectEnabledAutomaticRenames()
respectEnabledAutomaticRenames
in interface RenameRefactoring
public void respectAllAutomaticRenames()
respectAllAutomaticRenames
in interface RenameRefactoring
public boolean hasNonCodeUsages()
hasNonCodeUsages
in interface RenameRefactoring