|
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.SystemBaseWizardAction
org.eclipse.rse.ui.actions.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 for SystemNewConnectionAction |
|
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. |
void |
restrictSystemType(String systemType)
Call this to restrict the system type that the user is allowed to choose |
void |
restrictSystemTypes(String[] systemTypes)
Call this to restrict the system types that the user is allowed to choose |
void |
setConnectionName(String name)
Preset the connection name |
void |
setCurrentConnection(IHost conn)
Set the current selected connection so we can better intelligently set the defaults. |
void |
setHostName(String name)
Preset the host name |
boolean |
updateSelection(IStructuredSelection selection)
Override of parent method so we can deduce currently selected connection (direct or indirect if child object selected). |
| Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseWizardAction |
|---|
createDialog, getDialogValue, getWizardPageTitle, postProcessWizard, 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 false
public 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 false
public 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 false| Method Detail |
protected IWizard createWizard()
Our default implementation is to return SystemNewConnectionWizard.
createWizard in class SystemBaseWizardActionpublic void setCurrentConnection(IHost conn)
public void restrictSystemType(String systemType)
public void restrictSystemTypes(String[] systemTypes)
public void setConnectionName(String name)
public void setHostName(String name)
public boolean updateSelection(IStructuredSelection selection)
updateSelection in class SystemBaseAction
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||