|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.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
Copy selected files and folders action.
| Field Summary | |
|---|---|
protected Vector |
copiedFiles
|
protected IRemoteFile[] |
files
|
protected IRemoteFile |
firstSelection
|
protected IRemoteFile |
firstSelectionParent
|
protected IHost |
sourceConnection
|
protected IRemoteFileSubSystem |
ss
|
protected IRemoteFile |
targetFileOrFolder
|
protected IRemoteFile |
targetFolder
|
| 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 class org.eclipse.rse.ui.actions.SystemBaseDialogAction |
|---|
cancelled, dlgHelpId, needsProgressMonitor, needsProgressMonitorSet, processAll, value |
| Fields inherited from class org.eclipse.rse.ui.actions.SystemBaseAction |
|---|
allowOnMultipleSelection, arrowCursor, helpId, selectionSensitive, shell, sSelection, traceSelections, traceTarget, viewer, waitCursor |
| 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 |
| Constructor Summary | |
|---|---|
SystemCopyRemoteFileAction(Shell shell)
Constructor |
|
| Method Summary | |
|---|---|
protected String |
checkForCollision(Shell shell,
IProgressMonitor monitor,
Object targetContainer,
Object oldObject,
String oldName)
|
void |
copyComplete()
Called after all the copy/move operations end, be it successfully or not. |
protected Dialog |
createDialog(Shell shell)
Override of parent. |
protected boolean |
doCopy(IProgressMonitor monitor,
Object targetContainer,
Object oldObject,
String newName)
DO THE ACTUAL COPY OR MOVE. |
protected IRemoteFile |
getFirstSelectedFile()
Get the first selected file or folder |
protected String[] |
getOldNames()
|
protected Object[] |
getOldObjects()
|
protected IRemoteFile[] |
getSelectedFiles()
Get the currently selected IRemoteFile objects |
protected Object |
getTargetContainer(Dialog dlg)
Override this method if you supply your own copy/move target dialog. |
protected SystemSimpleContentElement |
getTreeInitialSelection()
Required parent class abstract method. |
protected SystemSimpleContentElement |
getTreeModel()
Required parent class abstract method. |
SystemMessage |
isValid(IHost selectedConnection,
Object[] selectedObjects,
ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObjects)
The user has selected a remote object. |
protected void |
reset()
Reset. |
boolean |
updateSelection(IStructuredSelection selection)
We override from parent to do unique checking... |
| 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.jface.action.AbstractAction |
|---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| 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 |
| Methods inherited from interface org.eclipse.jface.viewers.ISelectionChangedListener |
|---|
selectionChanged |
| Field Detail |
protected IRemoteFile targetFolder
protected IRemoteFile targetFileOrFolder
protected IRemoteFile firstSelection
protected IRemoteFile firstSelectionParent
protected IRemoteFile[] files
protected Vector copiedFiles
protected IHost sourceConnection
protected IRemoteFileSubSystem ss
| Constructor Detail |
public SystemCopyRemoteFileAction(Shell shell)
| Method Detail |
protected void reset()
reset in class SystemBaseCopyActionpublic boolean updateSelection(IStructuredSelection selection)
We simply ensure every selected object is an IRemoteFile
updateSelection in class SystemBaseActionSystemBaseAction.updateSelection(IStructuredSelection)
protected String checkForCollision(Shell shell,
IProgressMonitor monitor,
Object targetContainer,
Object oldObject,
String oldName)
checkForCollision in class SystemBaseCopyActionshell - Window to host dialogmonitor - Usually not neededtargetContainer - will be the IRemoteFile folder selected to copy intooldObject - will be the IRemoteFile object currently being copiedoldName - will be the name of the IRemoteFile object currently being copiedSystemBaseCopyAction.checkForCollision(Shell, IProgressMonitor, Object, Object, String)
protected boolean doCopy(IProgressMonitor monitor,
Object targetContainer,
Object oldObject,
String newName)
throws Exception
SystemBaseCopyAction
doCopy in class SystemBaseCopyActionmonitor - Usually not neededtargetContainer - will be the IRemoteFile folder selected to copy intooldObject - will be the IRemoteFile object currently being copiednewName - will be the new name to give the oldObject on copy
ExceptionSystemBaseCopyAction.doCopy(IProgressMonitor, Object, Object, String)protected SystemSimpleContentElement getTreeModel()
getTreeModel in class SystemBaseCopyActionprotected SystemSimpleContentElement getTreeInitialSelection()
getTreeInitialSelection in class SystemBaseCopyActionprotected Object[] getOldObjects()
getOldObjects in class SystemBaseCopyActionReturns an array of IRemoteFile objectsprotected String[] getOldNames()
getOldNames in class SystemBaseCopyActionSystemBaseCopyAction.getOldNames()protected Dialog createDialog(Shell shell)
createDialog in class SystemBaseCopyActionSystemBaseDialogAction.run()protected Object getTargetContainer(Dialog dlg)
getTargetContainer in class SystemBaseCopyActionpublic void copyComplete()
copyComplete in class SystemBaseCopyActionprotected IRemoteFile[] getSelectedFiles()
protected IRemoteFile getFirstSelectedFile()
public SystemMessage isValid(IHost selectedConnection,
Object[] selectedObjects,
ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObjects)
This is overridden in SystemMoveRemoteFileAction
isValid in interface IValidatorRemoteSelection
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||