public class MoveFilesAndFoldersOperation extends CopyFilesAndFoldersOperation
This class may be instantiated; it is not intended to be subclassed.
| Constructor and Description |
|---|
MoveFilesAndFoldersOperation(Shell shell)
Creates a new operation initialized with a shell.
|
| Modifier and Type | Method and Description |
|---|---|
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 boolean |
getValidateConflictSource()
Returns whether the source file in a destination collision
will be validateEdited together with the collision itself.
|
protected boolean |
isMove()
Return whether the operation is a move or a copy
|
String |
validateDestination(IContainer destination,
IResource[] sourceResources)
Checks whether the destination is valid for copying the source resources.
|
copyFiles, copyFiles, copyFilesInCurrentThread, copyFilesInCurrentThread, copyResources, copyResourcesInCurrentThread, getFile, getFiles, getFolder, getModelProviderIds, homogenousResources, setModelProviderIds, validateImportDestinationpublic MoveFilesAndFoldersOperation(Shell shell)
shell - parent shell for error dialogsprotected boolean canPerformAutoRename()
canPerformAutoRename in class CopyFilesAndFoldersOperationtrue if auto-rename is supported,
and false otherwiseprotected void copy(IResource[] resources, IPath destination, IProgressMonitor subMonitor) throws CoreException
copy in class CopyFilesAndFoldersOperationresources - the resources to movedestination - destination to which resources will be movedsubMonitor - a progress monitor for showing progress and for cancelationCoreExceptionprotected String getDeepCheckQuestion(IResource source)
getDeepCheckQuestion in class CopyFilesAndFoldersOperationsource - resource the query is made forprotected String getOperationTitle()
getOperationTitle in class CopyFilesAndFoldersOperationprotected String getProblemsMessage()
getProblemsMessage in class CopyFilesAndFoldersOperationprotected String getProblemsTitle()
getProblemsTitle in class CopyFilesAndFoldersOperationprotected boolean getValidateConflictSource()
getValidateConflictSource in class CopyFilesAndFoldersOperationtrue, the source file in a
destination collision should be validateEdited.public String validateDestination(IContainer destination, IResource[] sourceResources)
CopyFilesAndFoldersOperationNote this method is for internal use only. It is not API.
validateDestination in class CopyFilesAndFoldersOperationdestination - the destination containersourceResources - the source resourcesnull if the path is validprotected boolean isMove()
CopyFilesAndFoldersOperationisMove in class CopyFilesAndFoldersOperationGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.