public class MoveResourceAction extends CopyResourceAction
This class may be instantiated; it is not intended to be subclassed.
Modifier and Type | Field and Description |
---|---|
protected List |
destinations
Keep a list of destinations so that any required update can be done after the
move.
|
static String |
ID
The id of this action.
|
operation
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
Constructor and Description |
---|
MoveResourceAction(Shell shell)
Creates a new action.
|
Modifier and Type | Method and Description |
---|---|
protected CopyFilesAndFoldersOperation |
createOperation()
Returns the operation to perform when this action runs.
|
protected List |
getDestinations()
Returns the destination resources for the resources that have been moved so far.
|
protected IResource[] |
getResources(List resourceList)
Returns an array of resources to use for the operation from
the provided list.
|
protected void |
runOperation(IResource[] resources,
IContainer destination)
Runs the operation created in
createOperaiton |
getModelProviderIds, getNewNameFor, isValid, run, setModelProviderIds, updateSelection
clearCache, getSelectedNonResources, getSelectedResources, resourceIsType, selectionIsOfType
getStructuredSelection, runWithEvent, selectionChanged, selectionChanged
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, removePropertyChangeListener
public static final String ID
protected List destinations
public MoveResourceAction(Shell shell)
shell
- the shell for any dialogsprotected CopyFilesAndFoldersOperation createOperation()
CopyResourceAction
createOperation
in class CopyResourceAction
protected List getDestinations()
IResource
sprotected IResource[] getResources(List resourceList)
CopyResourceAction
getResources
in class CopyResourceAction
resourceList
- The list of resources to converted into an array.protected void runOperation(IResource[] resources, IContainer destination)
CopyResourceAction
createOperaiton
runOperation
in class CopyResourceAction
resources
- source resources to pass to the operationdestination
- destination container to pass to the operationGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.