Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

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

java.lang.Object
  extended by 

org.eclipse.core.commands.common.EventManager
      extended by 

org.eclipse.jface.action.AbstractAction
          extended by 

org.eclipse.jface.action.Action
              extended by 

org.eclipse.rse.ui.actions.SystemBaseAction
                  extended by 

org.eclipse.rse.ui.actions.SystemBaseDialogAction
                      extended by 
org.eclipse.rse.ui.filters.actions.SystemChangeFilterAction
All Implemented Interfaces:
IAction, ISelectionChangedListener, ISystemAction, ISystemDialogAction

public class SystemChangeFilterAction
extends SystemBaseDialogAction

The action that displays the Change Filter dialog


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
SystemChangeFilterAction ( Shell parent)
          Constructor for default action label and image
SystemChangeFilterAction ( Shell parent, String label, String tooltip)
           
SystemChangeFilterAction ( Shell parent, String label, String tooltip, ImageDescriptor image)
           
 
Method Summary
 void callConfigureFilterDialog ( SystemChangeFilterDialog dlg)
          This method is called internally, but had to be made public.
 boolean checkObjectType ( Object selectedObject)
          Called by SystemBaseAction when selection is set.
protected  void configureFilterDialog ( SystemChangeFilterDialog dlg)
          Overridable extension point to configure the filter dialog.
  Dialog createDialog ( Shell shell)
          This method creates and configures the filter dialog.
protected   Object getDialogValue ( Dialog dlg)
          Required by parent but we do not use it so return null;
protected   SystemChangeFilterDialog getFilterDialog ( Shell shell)
          Overridable extension point to get our filter dialog.
  SystemFilterStringEditPane getFilterStringEditPane ()
          Return the edit pane specified via setFilterStringEditPane(SystemFilterStringEditPane)
  ISystemFilter getSelectedFilter ()
          Get the selected filter
  ISystemFilterPoolManagerProvider getSystemFilterPoolManagerProvider ()
          Get the contextual system filter pool manager provider.
  ISystemFilterPoolReferenceManagerProvider getSystemFilterPoolReferenceManagerProvider ()
          Get the contextual system filter pool reference manager provider.
 void setDialogHelpContextId ( String id)
          Set the help id for the dialog that displays
 void setDialogTitle ( String title)
          Set the title for the dialog that displays
 void setFilterStringEditPane ( SystemFilterStringEditPane editPane)
          Specify an edit pane that prompts the user for the contents of a filter string.
 void setHelpContextId ( String id)
          Set the help context Id (infoPop) for this action.
 
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.rse.ui.actions. SystemBaseAction
allowOnMultipleSelection, getContextMenuGroup, getCurrentTreeView, getFirstSelection, getHelpContextId, getNextSelection, getRemoteAdapter, getSelection, getSelectionProvider, getShell, getShell, getSystemConnection, getViewAdapter, getViewer, isDummy, isEnabled, isSelectionSensitive, issueTraceMessage, selectionChanged, setAvailableOffline, setBusyCursor, setContextMenuGroup, setDisplayCursor, setDisplayCursor, setHelp, setHost, setInputs, setSelection, 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.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

SystemChangeFilterAction

public SystemChangeFilterAction(
Shell parent)
Constructor for default action label and image


SystemChangeFilterAction

public SystemChangeFilterAction(
Shell parent,
                                
String label,
                                
String tooltip)

SystemChangeFilterAction

public SystemChangeFilterAction(
Shell parent,
                                
String label,
                                
String tooltip,
                                
ImageDescriptor image)
Method Detail

setHelpContextId

public void setHelpContextId(
String id)
Set the help context Id (infoPop) for this action. This must be fully qualified by plugin ID.

Same as #setHelp(String)

See Also:
#setDialogHelp(String), #getHelpContextId()

setDialogTitle

public void setDialogTitle(
String title)
Set the title for the dialog that displays


setDialogHelpContextId

public void setDialogHelpContextId(
String id)
Set the help id for the dialog that displays


setFilterStringEditPane

public void setFilterStringEditPane(
SystemFilterStringEditPane editPane)
Specify an edit pane that prompts the user for the contents of a filter string.


getFilterStringEditPane

public 
SystemFilterStringEditPane getFilterStringEditPane()
Return the edit pane specified via setFilterStringEditPane(SystemFilterStringEditPane)


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 SystemBaseAction

createDialog

public 
Dialog createDialog(
Shell shell)
This method creates and configures the filter dialog. It defers to getFilterDialog(Shell) to create it, and then configures it here. So, do not override this, but do feel free to override getFilterDialog.

Specified by:
createDialog in class SystemBaseDialogAction
See Also:
SystemBaseDialogAction.run()

getFilterDialog

protected 
SystemChangeFilterDialog getFilterDialog(
Shell shell)
Overridable extension point to get our filter dialog. Only override this if you subclass SystemChangeFilterDialog. Else, override configureFilterDialog.


callConfigureFilterDialog

public void callConfigureFilterDialog(
SystemChangeFilterDialog dlg)
This method is called internally, but had to be made public. You can ignore it.


configureFilterDialog

protected void configureFilterDialog(
SystemChangeFilterDialog dlg)
Overridable extension point to configure the filter dialog. Typically you don't need to subclass our default dialog.

Note since the dialog has not been opened yet, you cannot assume its shell is ready, so call getParentShell() versus getShell().


getDialogValue

protected 
Object getDialogValue(
Dialog dlg)
Required by parent but we do not use it so return null;

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

getSystemFilterPoolReferenceManagerProvider

public 
ISystemFilterPoolReferenceManagerProvider getSystemFilterPoolReferenceManagerProvider()
Get the contextual system filter pool reference manager provider. Will return non-null if the current selection is not a reference to a filter pool or filter, or a reference manager provider.


getSystemFilterPoolManagerProvider

public 
ISystemFilterPoolManagerProvider getSystemFilterPoolManagerProvider()
Get the contextual system filter pool manager provider. Will return non-null if the current selection is not a reference to a filter pool or filter, or a reference manager provider, or a manager provider.


getSelectedFilter

public 
ISystemFilter getSelectedFilter()
Get the selected filter


RSE
Release 3.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire