org.netbeans.modules.refactoring.api
Class MoveRefactoring
java.lang.Object
org.netbeans.modules.refactoring.api.AbstractRefactoring
org.netbeans.modules.refactoring.api.MoveRefactoring
public final class MoveRefactoring
- extends AbstractRefactoring
This class is just holder for parameters of Move Refactoring.
Refactoring itself is implemented in plugins.
- See Also:
RefactoringPlugin,
RefactoringPluginFactory,
AbstractRefactoring,
RefactoringSession
|
Constructor Summary |
MoveRefactoring(Lookup objectsToMove)
Public constructor takes Lookup containing objects to refactor as parameter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MoveRefactoring
public MoveRefactoring(@NonNull
Lookup objectsToMove)
- Public constructor takes Lookup containing objects to refactor as parameter.
Move Refactoring implementations currently understand following types:
- Parameters:
objectsToMove - store your objects into Lookup
setTarget
public void setTarget(@NonNull
Lookup target)
- Target for moving.
Move Refactoring implementations currently understand following types:
| 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 |
| api.java.source.TreePathHandle | Does refactoring of members in .java files |
- Parameters:
target -
getTarget
@CheckForNull
public Lookup getTarget()
- Target for moving
- Returns:
- target
- See Also:
setTarget(org.openide.util.Lookup)