|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.actions.CopyFilesAndFoldersOperation | +--org.eclipse.ui.actions.MoveFilesAndFoldersOperation
Moves files and folders.
This class may be instantiated; it is not intended to be subclassed.
Constructor Summary | |
MoveFilesAndFoldersOperation(Shell shell)
Creates a new operation initialized with a shell. |
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 boolean |
getValidateConflictSource()
Returns whether the source file in a destination collision will be validateEdited together with the collision itself. |
String |
validateDestination(IContainer destination,
IResource[] sourceResources)
Checks whether the destination is valid for copying the source resources. |
Methods inherited from class org.eclipse.ui.actions.CopyFilesAndFoldersOperation |
copyFiles, copyResources, getFile, getFiles, getFolder, homogenousResources, validateImportDestination |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MoveFilesAndFoldersOperation(Shell shell)
shell
- parent shell for error dialogsMethod Detail |
protected boolean canPerformAutoRename()
canPerformAutoRename
in class CopyFilesAndFoldersOperation
true
if auto-rename is supported,
and false
otherwiseprotected void copy(IResource[] resources, IPath destination, IProgressMonitor subMonitor) throws CoreException
copy
in class CopyFilesAndFoldersOperation
resources
- the resources to movedestination
- destination to which resources will be movedsubMonitor
- a progress monitor for showing progress and for cancelationprotected String getDeepCheckQuestion(IResource source)
getDeepCheckQuestion
in class CopyFilesAndFoldersOperation
source
- resource the query is made forprotected String getOperationTitle()
getOperationTitle
in class CopyFilesAndFoldersOperation
protected String getProblemsMessage()
getProblemsMessage
in class CopyFilesAndFoldersOperation
protected String getProblemsTitle()
getProblemsTitle
in class CopyFilesAndFoldersOperation
protected boolean getValidateConflictSource()
getValidateConflictSource
in class CopyFilesAndFoldersOperation
true
, the source file in a
destination collision should be validateEdited.public String validateDestination(IContainer destination, IResource[] sourceResources)
CopyFilesAndFoldersOperation
Note this method is for internal use only. It is not API.
validateDestination
in class CopyFilesAndFoldersOperation
org.eclipse.ui.actions.CopyFilesAndFoldersOperation
destination
- the destination containersourceResources
- the source resourcesnull
if the path is valid
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |