|
RSE Release 3.3 |
|||||||||
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.SystemBaseWizardAction
org.eclipse.rse.ui.actions.SystemNewConnectionAction
public class SystemNewConnectionAction
The action that displays the New Connection wizard
Field Summary |
---|
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 | |
---|---|
SystemNewConnectionAction(Shell shell,
boolean fromPopupMenu,
boolean wantIcon,
ISelectionProvider sp)
Constructor for SystemNewConnectionAction when you don't want the icon. |
|
SystemNewConnectionAction(Shell shell,
boolean fromPopupMenu,
ISelectionProvider sp)
Constructor. |
|
SystemNewConnectionAction(Shell shell,
String label,
String tooltip,
boolean fromPopupMenu,
boolean wantIcon,
ISelectionProvider sp)
Constructor for SystemNewConnectionAction when you possibly don't want the icon, and want to supply your own label. |
Method Summary | |
---|---|
protected IWizard |
createWizard()
The default processing for the run method calls createDialog, which in turn calls this method to return an instance of our wizard. |
protected WizardDialog |
doCreateWizardDialog(Shell shell,
IWizard wizard)
Creates the dialog instance. |
protected Object |
getDialogValue(Dialog dlg)
By default, we try to get the wizard's value by calling getOutputObject() |
protected void |
postProcessWizard(IWizard wizard)
Typically, the wizard's performFinish method does the work required by a successful finish of the wizard. |
void |
restrictSystemTypes(IRSESystemType[] systemTypes)
Call this to restrict the system types that the user is allowed to choose |
boolean |
updateSelection(IStructuredSelection selection)
First opportunity to decide if the action should be enabled or not based on the current selection. |
Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseWizardAction |
---|
createDialog, getWizardPageTitle, setMinimumPageSize, setWizardImage, setWizardPageTitle, setWizardTitle, wasCancelled |
Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseDialogAction |
---|
getDialogHelpContextId, getNeedsProgressMonitor, getProcessAllSelections, getValue, run, setDialogHelp, setNeedsProgressMonitor, setProcessAllSelections, setValue, 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.ISystemDialogAction |
---|
getValue, setProcessAllSelections, setValue |
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, run, 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 SystemNewConnectionAction(Shell shell, boolean fromPopupMenu, ISelectionProvider sp)
shell
- The parent shell to host the new wizardfromPopupMenu
- true if being launched from the Remote System Explorer view directly,
false if being launched from a dialogsp
- The selection provider that will supply the selection via getSelection, if
fromPopupMenu is falsepublic SystemNewConnectionAction(Shell shell, boolean fromPopupMenu, boolean wantIcon, ISelectionProvider sp)
shell
- The parent shell to host the new wizardfromPopupMenu
- true if being launched from the Remote System Explorer view directly,
false if being launched from a dialogwantIcon
- true if you want the icon to show beside the action, false if notsp
- The selection provider that will supply the selection via getSelection, if
fromPopupMenu is falsepublic SystemNewConnectionAction(Shell shell, String label, String tooltip, boolean fromPopupMenu, boolean wantIcon, ISelectionProvider sp)
shell
- The parent shell to host the new wizardlabel
- The label for the actiontooltip
- the tooltip for the actionfromPopupMenu
- true if being launched from the Remote System Explorer view directly,
false if being launched from a dialogwantIcon
- true if you want the icon to show beside the action, false if notsp
- The selection provider that will supply the selection via getSelection, if
fromPopupMenu is falseMethod Detail |
---|
protected IWizard createWizard()
Our default implementation is to return RSEMainNewConnectionWizard
.
createWizard
in class SystemBaseWizardAction
protected WizardDialog doCreateWizardDialog(Shell shell, IWizard wizard)
SystemBaseWizardAction
createDialog(...)
.
Gives overrides the chance to plug-in their own specialized wizard dialog
implementations.
doCreateWizardDialog
in class SystemBaseWizardAction
shell
- The shell to create the dialog in. Must be not null
.wizard
- The wizard to create the wizard dialog for. Must be not null
.
null
.public void restrictSystemTypes(IRSESystemType[] systemTypes)
protected void postProcessWizard(IWizard wizard)
SystemBaseWizardAction
postProcessWizard
in class SystemBaseWizardAction
protected Object getDialogValue(Dialog dlg)
SystemBaseWizardAction
getDialogValue
in class SystemBaseWizardAction
dlg
- The dialog object, after it has returned from open.public boolean updateSelection(IStructuredSelection selection)
SystemBaseAction
The default implementation of this method:
updateSelection
in class SystemBaseAction
|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |