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, shellProvider
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(IShellProvider provider)
Creates a new action.
|
MoveResourceAction(Shell shell)
Deprecated.
|
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.
|
void |
run()
The default implementation of this
IAction method does
nothing. |
protected void |
runOperation(IResource[] resources,
IContainer destination)
Runs the operation created in
createOperation |
getModelProviderIds, getNewNameFor, isValid, 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
public static final String ID
protected List destinations
@Deprecated public MoveResourceAction(Shell shell)
MoveResourceAction(IShellProvider)
shell
- the shell for any dialogspublic MoveResourceAction(IShellProvider provider)
provider
- the shell for any dialogs.protected 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
createOperation
runOperation
in class CopyResourceAction
resources
- source resources to pass to the operationdestination
- destination container to pass to the operationpublic void run()
Action
IAction
method does
nothing. Subclasses should override this method if they do not need
information from the triggering event, or override
runWithEvent(Event)
if they do.run
in interface IAction
run
in class CopyResourceAction
How radio buttons are handled
,
How check boxes are handled
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.