public final class MoveRefactoring extends AbstractRefactoring
INIT, PARAMETERS_CHECK, PRE_CHECK, PREPARE
Constructor and Description |
---|
MoveRefactoring(Lookup objectsToMove)
Public constructor takes Lookup containing objects to refactor as parameter.
|
Modifier and Type | Method and Description |
---|---|
Lookup |
getTarget()
Target for moving
|
void |
setTarget(Lookup target)
Target for moving.
|
addProgressListener, cancelRequest, checkParameters, fastCheckParameters, getContext, getRefactoringSource, preCheck, prepare, removeProgressListener
public MoveRefactoring(@NonNull Lookup objectsToMove)
Module | Types the Module Understands | Implementation |
---|---|---|
Refactoring API (Default impl.) | FileObject (s) | Does file(s) move |
Java Refactoring | FileObject (s) with content type text/x-java | Does refactoring inside .java files |
org.netbeans.api.java.source.TreePathHandle(s) | Does refactoring of members in .java files | |
org.netbeans.api.java.source.TreePathHandle of class | Does refactoring of class in .java files |
objectsToMove
- store your objects into Lookuppublic void setTarget(@NonNull Lookup target)
Module | Types the Module Understands | Implementation |
---|---|---|
Refactoring API (Default impl.) | URL |
Creates directory corresponding to specified URL if does not
exist and moves all FileObjects into this folder. |
Java Refactoring | URL | Does move refactoring inside .java files |
org.netbeans.api.java.source.TreePathHandle | Does refactoring of members in .java files |
target
- @CheckForNull public Lookup getTarget()
MoveRefactoring.setTarget(org.openide.util.Lookup)