RSE
Release 1.0

org.eclipse.rse.ui.filters.actions
Class SystemFilterWorkWithFilterPoolsAction

java.lang.Object
  extended byorg.eclipse.core.commands.common.EventManager
      extended byorg.eclipse.jface.action.AbstractAction
          extended byorg.eclipse.jface.action.Action
              extended byorg.eclipse.rse.ui.actions.SystemBaseAction
                  extended byorg.eclipse.rse.ui.actions.SystemBaseDialogAction
                      extended byorg.eclipse.rse.ui.filters.actions.SystemFilterAbstractFilterPoolAction
                          extended byorg.eclipse.rse.ui.filters.actions.SystemFilterWorkWithFilterPoolsAction
All Implemented Interfaces:
IAction, ISelectionChangedListener, ISystemAction, ISystemDialogAction, SystemFilterPoolManagerUIProvider

public class SystemFilterWorkWithFilterPoolsAction
extends SystemFilterAbstractFilterPoolAction
implements SystemFilterPoolManagerUIProvider

The action that displays the Work With Filter Pools dialog


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
SystemFilterWorkWithFilterPoolsAction(Shell parent)
          Constructor when default label desired.
SystemFilterWorkWithFilterPoolsAction(Shell parent, boolean cascadingAction)
          Constructor when default label desired, and you want to choose between Work With -> Filter Pools and Work With Filter Pools.
SystemFilterWorkWithFilterPoolsAction(Shell parent, String title)
          Constructor when given the translated action label
 
Method Summary
 boolean checkObjectType(Object selectedObject)
          Called by SystemBaseAction when selection is set.
 SystemFilterPoolDialogInterface createFilterPoolDialog(Shell parent)
          Override of parent to create and return our specific filter pool dialog.
 void doOKprocessing(Object dlgValue)
          Because we return null from getDialogValue(Dialog dlg), this method will never be called.
protected  Object getDialogValue(Dialog dlg)
          We are a special case of dialog, where we do not need to do anything upon return from the dialog, as the dialog itself does it all.
 SystemSimpleContentElement getTreeModel()
          Callback for dialog to refresh its contents
 SystemSimpleContentElement getTreeModelPreSelection(SystemSimpleContentElement input)
          Callback for dialog to refresh its contents
protected  void init()
          Override of init in parent
 void reset()
          Reset between runs
 void setFilterPoolNameValidator(ValidatorFilterPoolName pnv)
          Set the pool name validator for the rename action.
 
Methods inherited from class org.eclipse.rse.ui.filters.actions.SystemFilterAbstractFilterPoolAction
createDialog, getDialogFilterPoolManagerNamePrompt, getDialogFilterPoolManagerNameTip, getDialogFilterPoolNamePrompt, getDialogFilterPoolNameTip, getDialogPreSelectInput, getDialogPrompt, getDialogTitle, getFilterPoolManagerNameSelectionIndex, getFilterPoolManagerProvider, getFilterPoolManagers, getFilterPoolPreSelection, getFilterPoolReferenceManager, getReferenceManagerProviderSelection, preSelect, run, setDialogFilterPoolManagerNamePrompt, setDialogFilterPoolNamePrompt, setDialogPreSelectInput, setDialogPrompt, setDialogTitle, setFilterPoolManagerNamePreSelection, setFilterPoolManagerNameSelectionIndex, setFilterPoolManagerProvider, setFilterPoolManagers, setFilterPoolReferenceManager, setHelpContextId, setSelection
 
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.rse.ui.actions.SystemBaseAction
allowOnMultipleSelection, getAdapter, getContextMenuGroup, getCurrentTreeView, getFirstSelection, getHelpContextId, getNextSelection, getRemoteAdapter, getSelection, getSelectionProvider, getShell, getShell, getSystemConnection, getViewer, isDummy, isEnabled, isSelectionSensitive, issueTraceMessage, selectionChanged, setAvailableOffline, setBusyCursor, setContextMenuGroup, setDisplayCursor, setDisplayCursor, setHelp, setHost, setInputs, setSelectionProvider, setSelectionSensitive, setShell, setTracing, setTracing, setViewer, updateSelection
 
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
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.filters.SystemFilterPoolManagerUIProvider
getFilterPoolManagers
 
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

SystemFilterWorkWithFilterPoolsAction

public SystemFilterWorkWithFilterPoolsAction(Shell parent)
Constructor when default label desired.


SystemFilterWorkWithFilterPoolsAction

public SystemFilterWorkWithFilterPoolsAction(Shell parent,
                                             boolean cascadingAction)
Constructor when default label desired, and you want to choose between Work With -> Filter Pools and Work With Filter Pools.


SystemFilterWorkWithFilterPoolsAction

public SystemFilterWorkWithFilterPoolsAction(Shell parent,
                                             String title)
Constructor when given the translated action label

Method Detail

init

protected void init()
Override of init in parent

Overrides:
init in class SystemFilterAbstractFilterPoolAction

reset

public void reset()
Reset between runs


setFilterPoolNameValidator

public void setFilterPoolNameValidator(ValidatorFilterPoolName pnv)
Set the pool name validator for the rename action. The work-with dialog automatically calls setExistingNamesList on it for each selection.


checkObjectType

public boolean checkObjectType(Object selectedObject)
Called by SystemBaseAction when selection is set. Our opportunity to verify we are allowed for this selected type.

Overrides:
checkObjectType in class SystemFilterAbstractFilterPoolAction

createFilterPoolDialog

public SystemFilterPoolDialogInterface createFilterPoolDialog(Shell parent)
Override of parent to create and return our specific filter pool dialog.

Specified by:
createFilterPoolDialog in class SystemFilterAbstractFilterPoolAction

getTreeModel

public SystemSimpleContentElement getTreeModel()
Callback for dialog to refresh its contents

Specified by:
getTreeModel in interface SystemFilterPoolManagerUIProvider

getTreeModelPreSelection

public SystemSimpleContentElement getTreeModelPreSelection(SystemSimpleContentElement input)
Callback for dialog to refresh its contents

Specified by:
getTreeModelPreSelection in interface SystemFilterPoolManagerUIProvider

getDialogValue

protected Object getDialogValue(Dialog dlg)
We are a special case of dialog, where we do not need to do anything upon return from the dialog, as the dialog itself does it all.

Specified by:
getDialogValue in class SystemFilterAbstractFilterPoolAction
Parameters:
dlg - The dialog object, after it has returned from open.

doOKprocessing

public void doOKprocessing(Object dlgValue)
Because we return null from getDialogValue(Dialog dlg), this method will never be called.

Specified by:
doOKprocessing in class SystemFilterAbstractFilterPoolAction
Parameters:
dlgValue - The output of getDialogValue().

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.