Klasse MoveElementsOperation

Alle implementierten Schnittstellen:
SuffixConstants, org.eclipse.core.resources.IWorkspaceRunnable, org.eclipse.core.runtime.ICoreRunnable, org.eclipse.core.runtime.IProgressMonitor
Bekannte direkte Unterklassen:
RenameElementsOperation

public class MoveElementsOperation extends CopyElementsOperation
This operation moves elements from their current container to a specified destination container, optionally renaming the elements. A move operation is equivalent to a copy operation, where the source elements are deleted after the copy.

This operation can be used for reorganizing elements within the same container.

Siehe auch:
  • Konstruktordetails

    • MoveElementsOperation

      public MoveElementsOperation(IJavaElement[] elementsToMove, IJavaElement[] destContainers, boolean force)
      When executed, this operation will move the given elements to the given containers.
  • Methodendetails

    • getMainTaskName

      protected String getMainTaskName()
      Returns the String to use as the main task name for progress monitoring.
      Setzt außer Kraft:
      getMainTaskName in Klasse CopyElementsOperation
    • isMove

      protected boolean isMove()
      Beschreibung aus Klasse kopiert: MultiOperation
      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.
      Setzt außer Kraft:
      isMove in Klasse MultiOperation
      Siehe auch: