|
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.filters.actions.SystemFilterAbstractFilterPoolAction
org.eclipse.rse.ui.filters.actions.SystemFilterSelectFilterPoolsAction
The action that displays the Select Filter Pools dialog, and which returns an array of selected filter pools.
Dialog will display a root node for each manager, and then the filter pools within each manager as children. User can select any pool from any of the given managers.
Uses getName() on manager for display name of root nodes.
Typically, such a dialog is used to allow the user to select a subset of pools that they will access in some context. There is framework support for such selections, via SystemFilterPoolReferences. Each of these are a reference to a filter pool, and the SystemFilterPoolReferenceManager class offers full support for manager a list of such references, optionally even saving and restoring such a list.
You call the setFilterPoolManagers method to set the array of filter pool managers this dialog allows the user to select from.
If you also call the optional method setFilterPoolReferenceManager, you need not subclass this action. It will handle everything for you!!
| Field Summary |
|---|
| Fields inherited from class org.eclipse.rse.ui.filters.actions.SystemFilterAbstractFilterPoolAction |
|---|
dlgInputs, mgrNamePreselect |
| 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 | |
|---|---|
SystemFilterSelectFilterPoolsAction(Shell parent)
Constructor when default label desired. |
|
SystemFilterSelectFilterPoolsAction(Shell parent,
String title)
Constructor when given the translated action label |
|
SystemFilterSelectFilterPoolsAction(Shell parent,
String title,
String tooltip)
Constructor when given the translated action label |
|
| Method Summary | |
|---|---|
protected Dialog |
createDialog(Shell parent)
Creates our select-filter-pools dialog, and populates it with the list of filter pools to select from. |
SystemFilterPoolDialogInterface |
createFilterPoolDialog(Shell parent)
We override createDialog from parent, so this is a no-op. |
void |
doOKprocessing(Object dlgOutput)
Method called when ok pressed on dialog and after getDialogValue has set the value attribute to an array of SystemFilterPool objects for the selected pools. |
protected Object |
getDialogValue(Dialog dlg)
Called by parent class after dialog returns. |
protected boolean |
getFilterPoolPreSelection(ISystemFilterPool pool)
Decide per pool if it should be selected or not. |
protected void |
init()
Override of init in parent |
protected void |
preSelect(SystemSimpleContentElement inputElement)
Walk elements deciding pre-selection |
| Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseDialogAction |
|---|
getDialogHelpContextId, getNeedsProgressMonitor, getProcessAllSelections, getValue, 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, 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 SystemFilterSelectFilterPoolsAction(Shell parent)
public SystemFilterSelectFilterPoolsAction(Shell parent,
String title)
public SystemFilterSelectFilterPoolsAction(Shell parent,
String title,
String tooltip)
| Method Detail |
protected void init()
init in class SystemFilterAbstractFilterPoolActionprotected Dialog createDialog(Shell parent)
Assumes setFilterPoolManagers has been called.
Dialog will display a root node for each manager, and then the filter pools within each manager as children. User can select any pool from any of the given managers.
Uses getName() on manager for display name of root nodes.
createDialog in class SystemFilterAbstractFilterPoolActionSystemBaseDialogAction.run()public SystemFilterPoolDialogInterface createFilterPoolDialog(Shell parent)
createFilterPoolDialog in class SystemFilterAbstractFilterPoolActionprotected void preSelect(SystemSimpleContentElement inputElement)
preSelect in class SystemFilterAbstractFilterPoolActionprotected boolean getFilterPoolPreSelection(ISystemFilterPool pool)
getFilterPoolPreSelection in class SystemFilterAbstractFilterPoolActionprotected Object getDialogValue(Dialog dlg)
After this action executes, simply call getValue() to get an array of SystemFilterPool objects representing what pools the user selected. A result of null means the dialog was cancelled.
getDialogValue in class SystemFilterAbstractFilterPoolActiondlg - The dialog object, after it has returned from open.public void doOKprocessing(Object dlgOutput)
By default, if the current selected object implements SystemFilterPoolReferenceManagerProvider, then this will call setFilterPoolReferences on that selected object.
doOKprocessing in class SystemFilterAbstractFilterPoolActiondlgOutput - The array of SystemFilterPools selected by the user, as set in getDialogValue()
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||