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.
|
operationAS_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, updateSelectionclearCache, getSelectedNonResources, getSelectedResources, resourceIsType, selectionIsOfTypegetStructuredSelection, runWithEvent, selectionChanged, selectionChangedconvertAccelerator, 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, setToolTipTextaddPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListeneraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, removePropertyChangeListenerpublic static final String ID
protected List destinations
public MoveResourceAction(Shell shell)
shell - the shell for any dialogsprotected CopyFilesAndFoldersOperation createOperation()
CopyResourceActioncreateOperation in class CopyResourceActionprotected List getDestinations()
IResourcesprotected IResource[] getResources(List resourceList)
CopyResourceActiongetResources in class CopyResourceActionresourceList - The list of resources to converted into an array.protected void runOperation(IResource[] resources, IContainer destination)
CopyResourceActioncreateOperaitonrunOperation in class CopyResourceActionresources - 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.