public class MoveElementsOperation extends CopyElementsOperation
This operation can be used for reorganizing elements within the same container.
CopyElementsOperationJavaModelOperation.IPostActioninsertBeforeElements, newParents, renamings, renamingsListactions, actionsEnd, actionsStart, APPEND, attributes, elementsToProcess, force, HAS_MODIFIED_RESOURCE_ATTR, isNested, KEEP_EXISTING, NO_ELEMENTS, OPERATION_STACKS, parentElements, POST_ACTION_VERBOSE, progressMonitor, REMOVEALL_APPEND, resultElements, TRUEEXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA| Constructor and Description |
|---|
MoveElementsOperation(IJavaElement[] elementsToMove,
IJavaElement[] destContainers,
boolean force)
When executed, this operation will move the given elements to the given containers.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getMainTaskName()
Returns the
String to use as the main task name
for progress monitoring. |
protected boolean |
isMove()
Returns
true if this operation represents a move or rename, false
if this operation represents a copy.Note: a rename is just a move within the same parent with a name change. |
getNestedOperation, isRenamingMainType, processElement, verify, verifyerror, executeOperation, getDestinationParent, getNewNameFor, isRename, processElements, setInsertBefore, setRenamings, verifyDestination, verifyRenaming, verifySiblingaddAction, addDelta, addReconcileDelta, applyTextEdit, beginTask, canModifyRoots, checkCanceled, commonVerify, copyResources, createFile, createFolder, deleteEmptyPackageFragment, deleteResource, deleteResources, done, equalsOneOf, executeNestedOperation, firstActionWithID, getAttribute, getCompilationUnitFor, getCurrentOperationStack, getDocument, getElementToProcess, getJavaModel, getNestedFolders, getParentElement, getParentElements, getResultElements, getSchedulingRule, getSubProgressMonitor, hasModifiedResource, internalWorked, isCanceled, isReadOnly, isTopLevelOperation, moveResources, newJavaElementDelta, popOperation, postAction, prefixesOneOf, pushOperation, removeAllPostAction, removeReconcileDelta, run, runOperation, runPostActions, setAttribute, setCanceled, setNested, setTaskName, subTask, workedpublic MoveElementsOperation(IJavaElement[] elementsToMove, IJavaElement[] destContainers, boolean force)
protected java.lang.String getMainTaskName()
String to use as the main task name
for progress monitoring.getMainTaskName in class CopyElementsOperationprotected boolean isMove()
MultiOperationtrue if this operation represents a move or rename, false
if this operation represents a copy.isMove in class MultiOperationMultiOperation.isMove()