|
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.SystemSelectConnectionAction
Use this action to put up a dialog allowing users to select one or more connections.
| 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 | |
|---|---|
SystemSelectConnectionAction(Shell shell)
Constructor |
|
| Method Summary | |
|---|---|
protected Dialog |
createDialog(Shell shell)
If you decide to use the supplied run method as is, then you must override this method to create and return the dialog that is displayed by the default run method implementation. |
protected Object |
getDialogValue(Dialog dlg)
If you decide to use the supplied run method as is, then you must override this method to retrieve the data from the dialog. |
IHost |
getSystemConnection()
Return the selected connection in single select mode |
void |
setDefaultConnection(IHost conn)
Set the connection to default the selection to |
void |
setInstructionLabel(String message)
Set the label text shown at the top of the dialog |
void |
setMultipleSelectionMode(boolean multiple)
Set multiple selection mode. |
void |
setShowNewConnectionPrompt(boolean show)
Set to true/false if a "New Connection..." special connection is to be shown for creating new connections. |
void |
setShowPropertySheet(boolean show)
Show the property sheet on the right hand side, to show the properties of the selected object. |
void |
setShowPropertySheet(boolean show,
boolean initialState)
Show the property sheet on the right hand side, to show the properties of the selected object. |
void |
setSystemType(String systemType)
Restrict to a certain system type |
void |
setSystemTypes(String[] systemTypes)
Restrict to certain system types |
| 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 SystemSelectConnectionAction(Shell shell)
| Method Detail |
public void setDefaultConnection(IHost conn)
public void setSystemTypes(String[] systemTypes)
systemTypes - the system types to restrict what connections are shown and what types of connections
the user can createIRSESystemTypepublic void setSystemType(String systemType)
systemType - the system type to restrict what connections are shown and what types of connections
the user can createIRSESystemTypepublic void setShowNewConnectionPrompt(boolean show)
public void setInstructionLabel(String message)
public void setShowPropertySheet(boolean show)
This overload always shows the property sheet
Default is false
public void setShowPropertySheet(boolean show,
boolean initialState)
This overload shows a Details>>> button so the user can decide if they want to see the property sheet.
show - True if show the property sheet within the dialoginitialState - True if the property is to be initially displayed, false if it is not
to be displayed until the user presses the Details button.public void setMultipleSelectionMode(boolean multiple)
If you turn on multiple selection mode, you must use the getSelectedObjects() method to retrieve the list of selected objects.
Further, if you turn this on, it has the side effect of allowing the user to select any remote object. The assumption being if you are prompting for files, you also want to allow the user to select a folder, with the meaning being that all files within the folder are implicitly selected.
#getSelectedObjects()public IHost getSystemConnection()
getSystemConnection in class SystemBaseActionprotected Dialog createDialog(Shell shell)
SystemBaseDialogActionIf you override actionPerformed with your own, then simply implement this to return null as it won't be used.
createDialog in class SystemBaseDialogActionSystemBaseDialogAction.run()protected Object getDialogValue(Dialog dlg)
SystemBaseDialogActionThis is called by the run method after the dialog returns, and wasCancelled() is false. Callers of this object can subsequently retrieve this returned value by calling getValue. If you don't need to pass a value back to the caller of this action, simply return null from this method.
getDialogValue in class SystemBaseDialogActiondlg - The dialog object, after it has returned from open.
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||