当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
MoveRefactoring (Refactoring API) - NetBeans API Javadoc (Current Development Version)
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(Lookup objectsToMove)
- Public constructor takes Lookup containing objects to refactor as parameter.
Move Refactoring implementations currently understand following types:
Module | Types the Module Understands | Implementation |
Refactoring API (Default impl.) | filsuystems.FileObject (s) | Does file(s) move |
Java Refactoring | filsuystems.FileObject (s) with content type text/x-java | Does refactoring inside .java files |
- Parameters:
objectsToMove
- store your objects into Lookup
setTarget
public void setTarget(Lookup target)
- Target for moving.
Move Refactoring implementations currently understand following types:
Module | Types the Module Understands | Implementation |
Refactoring API (Default impl.) | URL |
Creates direstory corresponding to specified URL if does not
exist and moves all FileObjects into this folder. |
Java Refactoring | URL | Does move refactoring inside .java files |
- Parameters:
target
-
getTarget
public Lookup getTarget()
- Target for moving
- Returns:
- target
- See Also:
setTarget(org.openide.util.Lookup)