| java.lang.Object org.eclipse.ui.actions.CopyFilesAndFoldersOperation org.eclipse.ui.actions.MoveFilesAndFoldersOperation
MoveFilesAndFoldersOperation | public class MoveFilesAndFoldersOperation extends CopyFilesAndFoldersOperation (Code) | | Moves files and folders.
This class may be instantiated; it is not intended to be subclassed.
since: 2.1 |
Method Summary | |
protected boolean | canPerformAutoRename() Returns whether this operation is able to perform on-the-fly
auto-renaming of resources with name collisions. | protected void | copy(IResource[] resources, IPath destination, IProgressMonitor subMonitor) Moves the resources to the given destination. | protected String | getDeepCheckQuestion(IResource source) Returns the message for querying deep copy/move of a linked resource. | protected String | getOperationTitle() Returns the task title for this operation's progress dialog. | protected String | getProblemsMessage() Returns the message for this operation's problems dialog. | protected String | getProblemsTitle() Returns the title for this operation's problems dialog. | 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. | protected boolean | getValidateConflictSource() Returns whether the source file in a destination collision will be
validateEdited together with the collision itself. | protected boolean | isMove() | public String | validateDestination(IContainer destination, IResource[] sourceResources) |
MoveFilesAndFoldersOperation | public MoveFilesAndFoldersOperation(Shell shell)(Code) | | Creates a new operation initialized with a shell.
Parameters: shell - parent shell for error dialogs |
canPerformAutoRename | protected boolean canPerformAutoRename()(Code) | | Returns whether this operation is able to perform on-the-fly
auto-renaming of resources with name collisions.
true if auto-rename is supported, andfalse otherwise |
copy | protected void copy(IResource[] resources, IPath destination, IProgressMonitor subMonitor) throws CoreException(Code) | | Moves the resources to the given destination. This method is called
recursively to merge folders during folder move.
Parameters: resources - the resources to move Parameters: destination - destination to which resources will be moved Parameters: subMonitor - a progress monitor for showing progress and for cancelationMoveFilesAndFoldersOperation.getUndoableCopyOrMoveOperation(IResource[],IPath) |
getDeepCheckQuestion | protected String getDeepCheckQuestion(IResource source)(Code) | | Returns the message for querying deep copy/move of a linked resource.
Parameters: source - resource the query is made for the deep query message |
getOperationTitle | protected String getOperationTitle()(Code) | | Returns the task title for this operation's progress dialog.
the task title |
getProblemsMessage | protected String getProblemsMessage()(Code) | | Returns the message for this operation's problems dialog.
the problems message |
getProblemsTitle | protected String getProblemsTitle()(Code) | | Returns the title for this operation's problems dialog.
the problems dialog title |
getUndoableCopyOrMoveOperation | protected AbstractWorkspaceOperation getUndoableCopyOrMoveOperation(IResource[] resources, IPath destinationPath)(Code) | | Returns an AbstractWorkspaceOperation suitable for performing the move or
copy operation that will move or copy the given resources to the given
destination path.
Parameters: resources - the resources to be moved or copied Parameters: destinationPath - the destination path to which the resources should be moved the operation that should be used to perform the move or copy since: 3.3 |
getValidateConflictSource | protected boolean getValidateConflictSource()(Code) | | Returns whether the source file in a destination collision will be
validateEdited together with the collision itself. Returns true.
boolean true , the source file in a destinationcollision should be validateEdited. |
isMove | protected boolean isMove()(Code) | | |
validateDestination | public String validateDestination(IContainer destination, IResource[] sourceResources)(Code) | | |
Methods inherited from org.eclipse.ui.actions.CopyFilesAndFoldersOperation | protected boolean canPerformAutoRename()(Code)(Java Doc) IStatus checkExist(IFileStore[] stores)(Code)(Java Doc) IStatus checkExist(IResource[] resources)(Code)(Java Doc) protected void copy(IResource[] resources, IPath destination, IProgressMonitor subMonitor) throws CoreException(Code)(Java Doc) public void copyFiles(URI[] uris, IContainer destination)(Code)(Java Doc) public void copyFiles(String[] fileNames, IContainer destination)(Code)(Java Doc) public void copyFilesInCurrentThread(URI[] uris, IContainer destination, IProgressMonitor monitor)(Code)(Java Doc) public void copyFilesInCurrentThread(String[] fileNames, IContainer destination, IProgressMonitor monitor)(Code)(Java Doc) public IResource[] copyResources(IResource[] resources, IContainer destination)(Code)(Java Doc) public IResource[] copyResourcesInCurrentThread(IResource[] resources, IContainer destination, IProgressMonitor monitor)(Code)(Java Doc) IResource createLinkedResourceHandle(IContainer destination, IResource source)(Code)(Java Doc) boolean delete(IResource resource, IProgressMonitor monitor)(Code)(Java Doc) static IPath getAutoNewNameFor(IPath originalName, IWorkspace workspace)(Code)(Java Doc) protected String getDeepCheckQuestion(IResource source)(Code)(Java Doc) protected IFile getFile(IResource resource)(Code)(Java Doc) protected File[] getFiles(String[] fileNames)(Code)(Java Doc) protected IFolder getFolder(IResource resource)(Code)(Java Doc) public String[] getModelProviderIds()(Code)(Java Doc) protected String getOperationTitle()(Code)(Java Doc) protected String getProblemsMessage()(Code)(Java Doc) protected String getProblemsTitle()(Code)(Java Doc) protected AbstractWorkspaceOperation getUndoableCopyOrMoveOperation(IResource[] resources, IPath destinationPath)(Code)(Java Doc) protected boolean getValidateConflictSource()(Code)(Java Doc) protected boolean homogenousResources(IResource source, IResource destination)(Code)(Java Doc) boolean isDestinationSameAsSource(IResource[] sourceResources, IContainer destination)(Code)(Java Doc) protected boolean isMove()(Code)(Java Doc) public void setModelProviderIds(String[] modelProviderIds)(Code)(Java Doc) public String validateDestination(IContainer destination, IResource[] sourceResources)(Code)(Java Doc) public String validateImportDestination(IContainer destination, String[] sourceNames)(Code)(Java Doc)
|
|
|