org.netbeans.modules.refactoring.api 1.26.0 1

org.netbeans.modules.refactoring.api
Class MoveRefactoring

java.lang.Object
  extended by org.netbeans.modules.refactoring.api.AbstractRefactoring
      extended by 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

Field Summary
 
Fields inherited from class org.netbeans.modules.refactoring.api.AbstractRefactoring
INIT, PARAMETERS_CHECK, PRE_CHECK, PREPARE
 
Constructor Summary
MoveRefactoring(Lookup objectsToMove)
          Public constructor takes Lookup containing objects to refactor as parameter.
 
Method Summary
 Lookup getTarget()
          Target for moving
 void setTarget(Lookup target)
          Target for moving.
 
Methods inherited from class org.netbeans.modules.refactoring.api.AbstractRefactoring
addProgressListener, cancelRequest, checkParameters, fastCheckParameters, getContext, getRefactoringSource, preCheck, prepare, removeProgressListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveRefactoring

public MoveRefactoring(@NonNull
                       Lookup objectsToMove)
Public constructor takes Lookup containing objects to refactor as parameter. Move Refactoring implementations currently understand following types:
ModuleTypes the Module UnderstandsImplementation
Refactoring API (Default impl.)FileObject(s)Does file(s) move
Java RefactoringFileObject(s) with content type text/x-javaDoes refactoring inside .java files
api.java.source.TreePathHandle(s)Does refactoring of members in .java files
api.java.source.TreePathHandle of classDoes refactoring of class in .java files

Parameters:
objectsToMove - store your objects into Lookup
Method Detail

setTarget

public void setTarget(@NonNull
                      Lookup target)
Target for moving. Move Refactoring implementations currently understand following types:
ModuleTypes the Module UnderstandsImplementation
Refactoring API (Default impl.)URL Creates directory corresponding to specified URL if does not exist and moves all FileObjects into this folder.
Java RefactoringURLDoes move refactoring inside .java files
api.java.source.TreePathHandleDoes 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)

org.netbeans.modules.refactoring.api 1.26.0 1

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.