org.eclipse.jdt.internal.core
Class MoveResourceElementsOperation
java.lang.Object
org.eclipse.jdt.internal.core.JavaModelOperation
org.eclipse.jdt.internal.core.MultiOperation
org.eclipse.jdt.internal.core.CopyResourceElementsOperation
org.eclipse.jdt.internal.core.MoveResourceElementsOperation
- All Implemented Interfaces:
- IWorkspaceRunnable, org.eclipse.core.runtime.IProgressMonitor, SuffixConstants
- Direct Known Subclasses:
- RenameResourceElementsOperation
public class MoveResourceElementsOperation
- extends CopyResourceElementsOperation
This operation moves resources (package fragments and compilation units) from their current
container to a specified destination container, optionally renaming the
elements.
A move resource operation is equivalent to a copy resource operation, where
the source resources are deleted after the copy.
This operation can be used for reorganizing resources within the same container.
- See Also:
CopyResourceElementsOperation
Fields inherited from interface org.eclipse.jdt.internal.compiler.util.SuffixConstants |
EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA |
Fields inherited from interface org.eclipse.core.runtime.IProgressMonitor |
UNKNOWN |
Methods inherited from class org.eclipse.jdt.internal.core.JavaModelOperation |
beginTask, done, executeNestedOperation, getJavaModel, getResultElements, hasModifiedResource, internalWorked, isCanceled, isReadOnly, newJavaElementDelta, run, runOperation, setCanceled, setTaskName, subTask, worked |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MoveResourceElementsOperation
public MoveResourceElementsOperation(IJavaElement[] elementsToMove,
IJavaElement[] destContainers,
boolean force)
- When executed, this operation will move the given elements to the given containers.