Class CopyFilesAndFoldersOperation

java.lang.Object
org.eclipse.ui.actions.CopyFilesAndFoldersOperation
com.iizigo.editor.CopyFilesAndFoldersOperation

public class CopyFilesAndFoldersOperation extends CopyFilesAndFoldersOperation
Copy files and folders operation with undo support (added context support).
Author:
Christopher Mindus
  • Constructor Details

    • CopyFilesAndFoldersOperation

      public CopyFilesAndFoldersOperation(String description, IPropUndoRedo undoRedo)
      The constructor.
      Parameters:
      description - The operation description, or null for default.
      undoRedo - The undo/redo interface.
  • Method Details

    • getUndoableCopyOrMoveOperation

      protected AbstractWorkspaceOperation getUndoableCopyOrMoveOperation(IResource[] resources, IPath destinationPath)
      Returns an AbstractWorkspaceOperation suitable for performing the move or copy operation that will move or copy the given resources to the given destination path.
      Overrides:
      getUndoableCopyOrMoveOperation in class CopyFilesAndFoldersOperation
      Parameters:
      resources - The resources to be moved or copied.
      destinationPath - The destination path to which the resources should be moved.
      Returns:
      The operation that should be used to perform the move or copy.