public final class SafeDeleteRefactoring extends AbstractRefactoring
INIT, PARAMETERS_CHECK, PRE_CHECK, PREPARE
Constructor and Description |
---|
SafeDeleteRefactoring(Lookup namedElements)
Creates a new instance of SafeDeleteRefactoring, passing Lookup containing the candidate
elements as parameter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isCheckInComments()
Indicates whether the usage of the elements will also be checked
in comments before deleting the elements
|
void |
setCheckInComments(boolean checkInComments)
Sets whether or not the usage of the elements will be checked
in comments before deleting the elements
|
addProgressListener, cancelRequest, checkParameters, fastCheckParameters, getContext, getRefactoringSource, preCheck, prepare, removeProgressListener
public SafeDeleteRefactoring(@NonNull Lookup namedElements)
Module | Types the Module Understands | Implementation |
---|---|---|
Refactoring API (Default impl.) | FileObject | Does file delete |
Java Refactoring |
|
Check for usages and does refactoring inside .java files. |
namedElements
- The elements to be safely deletedpublic boolean isCheckInComments()
public void setCheckInComments(boolean checkInComments)
checkInComments
- Sets the checInComments field of this class