|
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.ui.actions.SystemCopyConnectionAction
Copy a connection action.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.rse.ui.actions.SystemBaseCopyAction |
|---|
copiedOk, mgr, mode, MODE_COPY, MODE_MOVE, newNames, oldNames, oldObjects, runCount, runException, 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 | |
|---|---|
SystemCopyConnectionAction(Shell parent)
Constructor for SystemCopyConnectionAction |
|
| Method Summary | |
|---|---|
protected String |
checkForCollision(Shell shell,
IProgressMonitor monitor,
Object targetContainer,
Object oldObject,
String oldName)
|
protected boolean |
doCopy(IProgressMonitor monitor,
Object targetContainer,
Object oldObject,
String newName)
DO THE ACTUAL COPY OR MOVE. |
protected SystemMessage |
getCopyingMessage()
Get the generic "Copying..." or "Moving..." message |
protected SystemMessage |
getCopyingMessage(String oldName)
Get the specific "Copying %1..." or "Moving %1..." message |
protected IHost |
getFirstSelectedConnection()
Get the first selected connection |
protected String[] |
getOldNames()
|
protected Object[] |
getOldObjects()
|
protected SystemSimpleContentElement |
getProfileTreeModel(ISystemProfile profile)
Create and return data model to populate selection tree with. |
protected String |
getPromptString()
Get the verbage prompt to show on line one of the copy dialog |
protected IHost[] |
getSelectedConnections()
Get the currently selected connections |
protected SystemSimpleContentElement |
getTreeInitialSelection()
|
protected SystemSimpleContentElement |
getTreeModel()
|
boolean |
updateSelection(IStructuredSelection selection)
We override from parent to do unique checking... |
| Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseCopyAction |
|---|
copyComplete, createDialog, getCompletionMessage, getDialogValue, getRunnableContext, getTargetContainer, isValidTargetParent, preCheckForCollision, preCheckForCollision, reset, 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 |
| Constructor Detail |
public SystemCopyConnectionAction(Shell parent)
| Method Detail |
public boolean updateSelection(IStructuredSelection selection)
We intercept to ensure only connections from the same profile are selected.
updateSelection in class SystemBaseActionSystemBaseAction.updateSelection(IStructuredSelection)
protected String checkForCollision(Shell shell,
IProgressMonitor monitor,
Object targetContainer,
Object oldObject,
String oldName)
checkForCollision in class SystemBaseCopyActionSystemBaseCopyAction.checkForCollision(Shell, IProgressMonitor, Object, Object, String)
protected boolean doCopy(IProgressMonitor monitor,
Object targetContainer,
Object oldObject,
String newName)
throws Exception
SystemBaseCopyAction
doCopy in class SystemBaseCopyActionExceptionSystemBaseCopyAction.doCopy(IProgressMonitor, Object, Object, String)protected SystemSimpleContentElement getTreeModel()
getTreeModel in class SystemBaseCopyActionSystemBaseCopyAction.getTreeModel()protected SystemSimpleContentElement getTreeInitialSelection()
getTreeInitialSelection in class SystemBaseCopyActionSystemBaseCopyAction.getTreeInitialSelection()protected String getPromptString()
SystemBaseCopyAction
getPromptString in class SystemBaseCopyActionSystemBaseCopyAction.getPromptString()protected SystemMessage getCopyingMessage()
SystemBaseCopyAction
getCopyingMessage in class SystemBaseCopyActionSystemBaseCopyAction.getCopyingMessage()protected SystemMessage getCopyingMessage(String oldName)
SystemBaseCopyAction
getCopyingMessage in class SystemBaseCopyActionSystemBaseCopyAction.getCopyingMessage( String)protected Object[] getOldObjects()
getOldObjects in class SystemBaseCopyActionSystemBaseCopyAction.getOldObjects()protected String[] getOldNames()
getOldNames in class SystemBaseCopyActionSystemBaseCopyAction.getOldNames()protected IHost[] getSelectedConnections()
protected IHost getFirstSelectedConnection()
protected SystemSimpleContentElement getProfileTreeModel(ISystemProfile profile)
profile - whose tree model element is to be selected
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||