public final class RenameRefactoring extends AbstractRefactoring
INIT, PARAMETERS_CHECK, PRE_CHECK, PREPARE
Constructor and Description |
---|
RenameRefactoring(Lookup item)
Creates a new instance of RenameRefactoring.
|
Modifier and Type | Method and Description |
---|---|
String |
getNewName()
Getter for property newName
|
boolean |
isSearchInComments()
Getter for boolean property searchInComments
|
void |
setNewName(String newName)
Setter for property newName
|
void |
setSearchInComments(boolean searchInComments)
Setter for property searchInComments.
|
addProgressListener, cancelRequest, checkParameters, fastCheckParameters, getContext, getRefactoringSource, preCheck, prepare, removeProgressListener
public RenameRefactoring(@NonNull Lookup item)
Module | Types the Module Understands | Implementation |
---|---|---|
Refactoring API (Default impl.) | FileObject | Does file rename |
Java Refactoring |
|
Does refactoring inside .java files. In case of FolderRename it also does corresponding file moves |
item
- put object to rename into Lookup instance.@CheckForNull public String getNewName()
public void setNewName(@NonNull String newName)
newName
- New value of property newNamepublic boolean isSearchInComments()
public void setSearchInComments(boolean searchInComments)
searchInComments
- New value of property searchInComments