public final class SingleCopyRefactoring extends AbstractRefactoring
INIT, PARAMETERS_CHECK, PRE_CHECK, PREPARE
Constructor and Description |
---|
SingleCopyRefactoring(Lookup objectToCopy)
Creates a new instance of SingleCopyRefactoring.
|
Modifier and Type | Method and Description |
---|---|
String |
getNewName()
getter for new name of copied file
|
Lookup |
getTarget()
Target for copying
|
void |
setNewName(String newName)
setter for new name of copied file
|
void |
setTarget(Lookup target)
Target for copying.
|
addProgressListener, cancelRequest, checkParameters, fastCheckParameters, getContext, getRefactoringSource, preCheck, prepare, removeProgressListener
public SingleCopyRefactoring(@NonNull Lookup objectToCopy)
Module | Types the Module Understands | Implementation |
---|---|---|
Refactoring API (Default impl.) | FileObject | Does file copy |
Java Refactoring |
| Updates name, package declaration and import statements |
objectToCopy
- Object to be copied stored 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 copies all FileObjects into this folder. |
Java Refactoring | URL | Updates name, package declaration and import statements |
target
- @CheckForNull public Lookup getTarget()
SingleCopyRefactoring.setTarget(org.openide.util.Lookup)
@CheckForNull public String getNewName()