Class CopyFilesAndFoldersOperation

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

public class CopyFilesAndFoldersOperation extends org.eclipse.ui.actions.CopyFilesAndFoldersOperation
Copy files and folders operation with undo support (added context support).
Author:
Christopher Mindus
  • Constructor Summary

    Constructors
    Constructor
    Description
    The constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.eclipse.ui.ide.undo.AbstractWorkspaceOperation
    getUndoableCopyOrMoveOperation(org.eclipse.core.resources.IResource[] resources, org.eclipse.core.runtime.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.

    Methods inherited from class org.eclipse.ui.actions.CopyFilesAndFoldersOperation

    canPerformAutoRename, copy, copyFiles, copyFiles, copyFilesInCurrentThread, copyFilesInCurrentThread, copyOrLinkFiles, copyResources, copyResourcesInCurrentThread, createVirtualFoldersAndLinks, getDeepCheckQuestion, getFile, getFiles, getFolder, getModelProviderIds, getOperationTitle, getProblemsMessage, getProblemsTitle, getValidateConflictSource, homogenousResources, isMove, linkFiles, setCreateLinks, setModelProviderIds, setRelativeVariable, setVirtualFolders, validateDestination, validateImportDestination

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 org.eclipse.ui.ide.undo.AbstractWorkspaceOperation getUndoableCopyOrMoveOperation(org.eclipse.core.resources.IResource[] resources, org.eclipse.core.runtime.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 org.eclipse.ui.actions.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.