|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.actions.CopyFilesAndFoldersOperation
org.eclipse.ui.actions.MoveFilesAndFoldersOperation
public class 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)
Deprecated. As of 3.3, the work is performed in the undoable operation created in getUndoableCopyOrMoveOperation(IResource[], IPath) |
protected java.lang.String |
getDeepCheckQuestion(IResource source)
Returns the message for querying deep copy/move of a linked resource. |
protected java.lang.String |
getOperationTitle()
Returns the task title for this operation's progress dialog. |
protected java.lang.String |
getProblemsMessage()
Returns the message for this operation's problems dialog. |
protected java.lang.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()
Return whether the operation is a move or a copy |
java.lang.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, copyFiles, copyFilesInCurrentThread, copyFilesInCurrentThread, copyOrLinkFiles, copyResources, copyResourcesInCurrentThread, createVirtualFoldersAndLinks, getFile, getFiles, getFolder, getModelProviderIds, homogenousResources, linkFiles, setCreateLinks, setModelProviderIds, setRelativeVariable, setVirtualFolders, 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 dialogs| Method Detail |
|---|
protected boolean canPerformAutoRename()
canPerformAutoRename in class CopyFilesAndFoldersOperationtrue if auto-rename is supported, and
false otherwise
protected void copy(IResource[] resources,
IPath destination,
IProgressMonitor subMonitor)
throws CoreException
getUndoableCopyOrMoveOperation(IResource[], IPath)
copy in class CopyFilesAndFoldersOperationresources - the resources to movedestination - destination to which resources will be movedsubMonitor - a progress monitor for showing progress and for cancelation
CoreExceptionprotected java.lang.String getDeepCheckQuestion(IResource source)
getDeepCheckQuestion in class CopyFilesAndFoldersOperationsource - resource the query is made for
protected java.lang.String getOperationTitle()
getOperationTitle in class CopyFilesAndFoldersOperationprotected java.lang.String getProblemsMessage()
getProblemsMessage in class CopyFilesAndFoldersOperationprotected java.lang.String getProblemsTitle()
getProblemsTitle in class CopyFilesAndFoldersOperationprotected boolean getValidateConflictSource()
getValidateConflictSource in class CopyFilesAndFoldersOperationtrue, the source file in a destination
collision should be validateEdited.
public java.lang.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 resources
null if the path is validprotected boolean isMove()
CopyFilesAndFoldersOperation
isMove in class CopyFilesAndFoldersOperation
protected AbstractWorkspaceOperation getUndoableCopyOrMoveOperation(IResource[] resources,
IPath destinationPath)
getUndoableCopyOrMoveOperation in class CopyFilesAndFoldersOperationresources - the resources to be moved or copieddestinationPath - the destination path to which the resources should be moved
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.