| org.eclipse.ui.ide.undo.AbstractWorkspaceOperation org.eclipse.ui.ide.undo.AbstractResourcesOperation org.eclipse.ui.ide.undo.AbstractCopyOrMoveResourcesOperation
All known Subclasses: org.eclipse.ui.ide.undo.MoveResourcesOperation, org.eclipse.ui.ide.undo.MoveProjectOperation, org.eclipse.ui.ide.undo.CopyResourcesOperation, org.eclipse.ui.ide.undo.CopyProjectOperation,
AbstractCopyOrMoveResourcesOperation | abstract class AbstractCopyOrMoveResourcesOperation extends AbstractResourcesOperation (Code) | | An AbstractCopyOrMoveResourcesOperation represents an undoable operation for
moving or copying one or more resources in the workspace. Clients may call
the public API from a background thread.
This class is not intended to be subclassed by clients.
since: 3.3 |
Constructor Summary | |
| AbstractCopyOrMoveResourcesOperation(IResource[] resources, IPath[] destinationPaths, String label) Create an AbstractCopyOrMoveResourcesOperation that moves or copies all
of the specified resources to the specified paths. | | AbstractCopyOrMoveResourcesOperation(IResource[] resources, IPath destinationPath, String label) Create an AbstractCopyOrMoveResourcesOperation that moves or copies all
of the specified resources to the same target location, using their
existing names. | | AbstractCopyOrMoveResourcesOperation(IResource[] resources, String label) Create an AbstractCopyOrMoveResourcesOperation whose destination is not
yet specified. |
destination | protected IPath destination(Code) | | |
destinationPaths | protected IPath[] destinationPaths(Code) | | |
AbstractCopyOrMoveResourcesOperation | AbstractCopyOrMoveResourcesOperation(IResource[] resources, IPath[] destinationPaths, String label)(Code) | | Create an AbstractCopyOrMoveResourcesOperation that moves or copies all
of the specified resources to the specified paths. The destination paths
must include the names of the resources at their new location.
Parameters: resources - the resources to be moved or copied. May not contain nullresources, or resources that are descendants of already included resources. Parameters: destinationPaths - the destination paths for the resources, including the name tobe assigned to the resource at its new location. May not containnull paths, and must be the same length as the resources array. Parameters: label - the label of the operation |
AbstractCopyOrMoveResourcesOperation | AbstractCopyOrMoveResourcesOperation(IResource[] resources, IPath destinationPath, String label)(Code) | | Create an AbstractCopyOrMoveResourcesOperation that moves or copies all
of the specified resources to the same target location, using their
existing names.
Parameters: resources - the resources to be moved or copied Parameters: destinationPath - the destination path for the resources, not including the nameof the new resource. Parameters: label - the label of the operation |
AbstractCopyOrMoveResourcesOperation | AbstractCopyOrMoveResourcesOperation(IResource[] resources, String label)(Code) | | Create an AbstractCopyOrMoveResourcesOperation whose destination is not
yet specified.
Parameters: resources - the resources to be modified Parameters: label - the label of the operation |
computeExecutionStatus | public IStatus computeExecutionStatus(IProgressMonitor monitor)(Code) | | |
computeMoveOrCopyStatus | protected IStatus computeMoveOrCopyStatus()(Code) | | Compute the status for moving or copying the resources. A status severity
of OK indicates that the copy or move is likely to be
successful. A status severity of ERROR indicates that the
operation is no longer valid. Other status severities are open to
interpretation by the caller.
Note this method may be called on initial moving or copying of a
resource, or when a move or copy is undone or redone. Therefore, this
method should check conditions that can change over the life of the
operation, such as whether the file to moved or copied exists, and
whether the target location is still valid. One-time static checks should
typically be done by the caller so that the user is not continually
prompted or warned about conditions that were acceptable at the time of
original execution and do not change over time.
the status indicating the projected outcome of moving or copyingthe resources. |
computeRedoableStatus | public IStatus computeRedoableStatus(IProgressMonitor monitor)(Code) | | |
getDestinationPath | protected IPath getDestinationPath(IResource resource, int index)(Code) | | Return the destination path that should be used to move or copy the
specified resource. This path is relative to the workspace.
Parameters: resource - the resource being moved or copied Parameters: index - the integer index of the resource in the resource array the path specifying the destination for the resource |
getProposedName | protected String getProposedName(IResource resource, int index)(Code) | | Return a string indicating the proposed name for the resource
Parameters: resource - the resource whose path is to be checked Parameters: index - the integer index of the resource in the resource array the string name of the resource |
isDestinationPathValid | protected boolean isDestinationPathValid(IResource resource, int index)(Code) | | Return a boolean indicating whether the proposed destination path for a
resource is valid.
Parameters: resource - the resource whose path is to be checked Parameters: index - the integer index of the resource in the resource array a boolean indicating whether the destination path is valid |
|
|