org.eclipse.rse.files.ui.actions
Class SystemMoveRemoteFileAction
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.rse.ui.actions.SystemBaseAction
org.eclipse.rse.ui.actions.SystemBaseDialogAction
org.eclipse.rse.ui.actions.SystemBaseCopyAction
org.eclipse.rse.files.ui.actions.SystemCopyRemoteFileAction
org.eclipse.rse.files.ui.actions.SystemMoveRemoteFileAction
- All Implemented Interfaces:
- IAction, IRunnableWithProgress, ISelectionChangedListener, ISystemAction, ISystemCopyTargetSelectionCallback, ISystemDialogAction, IValidatorRemoteSelection
- public class SystemMoveRemoteFileAction
- extends SystemCopyRemoteFileAction
- implements IValidatorRemoteSelection
Move selected files and folders action.
| Fields inherited from class org.eclipse.rse.ui.actions.SystemBaseCopyAction |
copiedOk, mgr, mode, MODE_COPY, MODE_MOVE, newNames, oldNames, oldObjects, runCount, runException, sr, targetContainer |
| Fields inherited from interface org.eclipse.jface.action.IAction |
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 |
| Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseCopyAction |
getCompletionMessage, getCopyingMessage, getCopyingMessage, getDialogValue, getPromptString, getRunnableContext, isValidTargetParent, preCheckForCollision, preCheckForCollision, run, showOperationCancelledMessage, showOperationErrorMessage, showOperationErrorMessage, showOperationMessage |
| Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseDialogAction |
getDialogHelpContextId, getNeedsProgressMonitor, getProcessAllSelections, getValue, run, setDialogHelp, setNeedsProgressMonitor, setProcessAllSelections, setValue, wasCancelled, wasNeedsProgressMonitorSet |
| Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseAction |
allowOnMultipleSelection, checkObjectType, getAdapter, getContextMenuGroup, getCurrentTreeView, getFirstSelection, getHelpContextId, getNextSelection, getRemoteAdapter, getSelection, getSelectionProvider, getShell, getShell, getSystemConnection, getViewer, isDummy, isEnabled, isSelectionSensitive, issueTraceMessage, selectionChanged, setAvailableOffline, setBusyCursor, setContextMenuGroup, setDisplayCursor, setDisplayCursor, setHelp, setHost, setInputs, setSelection, setSelectionProvider, setSelectionSensitive, setShell, setTracing, setTracing, setViewer |
| Methods inherited from class org.eclipse.jface.action.Action |
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.rse.ui.actions.ISystemAction |
allowOnMultipleSelection, getContextMenuGroup, getHelpContextId, getSelection, getShell, getViewer, isDummy, isSelectionSensitive, setContextMenuGroup, setHelp, setInputs, setSelection, setSelectionSensitive, setShell, setViewer |
| Methods inherited from interface org.eclipse.jface.action.IAction |
addPropertyChangeListener, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
movedFiles
protected Vector movedFiles
SystemMoveRemoteFileAction
public SystemMoveRemoteFileAction(Shell shell)
- Constructor
reset
protected void reset()
- Reset. This is a re-run of this action
- Overrides:
reset in class SystemCopyRemoteFileAction
doCopy
protected boolean doCopy(IProgressMonitor monitor,
Object targetContainer,
Object oldObject,
String newName)
throws Exception
- Description copied from class:
SystemBaseCopyAction
- DO THE ACTUAL COPY OR MOVE. THIS MUST BE IMPLEMENTED BY CHILD CLASSES
- Overrides:
doCopy in class SystemCopyRemoteFileAction
- Parameters:
monitor - Usually not neededtargetContainer - will be the IRemoteFile folder selected to move intooldObject - will be the IRemoteFile object currently being movednewName - will be the new name to give the oldObject on move
- Throws:
Exception- See Also:
SystemBaseCopyAction.doCopy(IProgressMonitor, Object, Object, String)
isValid
public SystemMessage isValid(IHost selectedConnection,
Object[] selectedObjects,
ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObjects)
- The user has selected a remote object. Return null if OK is to be enabled, or a SystemMessage
if it is not to be enabled. The message will be displayed on the message line.
- Specified by:
isValid in interface IValidatorRemoteSelection- Overrides:
isValid in class SystemCopyRemoteFileAction
copyComplete
public void copyComplete()
- Called after all the copy/move operations end, be it successfully or not.
Your opportunity to display completion or do post-copy selections/refreshes
- Overrides:
copyComplete in class SystemCopyRemoteFileAction
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.