RSE
Release 1.0

org.eclipse.rse.ui.filters
Class SystemFilterWorkWithFilterPoolsTreeViewer

java.lang.Object
  extended byorg.eclipse.jface.viewers.Viewer
      extended byorg.eclipse.jface.viewers.ContentViewer
          extended byorg.eclipse.jface.viewers.StructuredViewer
              extended byorg.eclipse.jface.viewers.AbstractTreeViewer
                  extended byorg.eclipse.jface.viewers.TreeViewer
                      extended byorg.eclipse.rse.ui.filters.SystemFilterWorkWithFilterPoolsTreeViewer
All Implemented Interfaces:
IInputProvider, IInputSelectionProvider, IMenuListener, IPostSelectionProvider, ISelectionProvider

public class SystemFilterWorkWithFilterPoolsTreeViewer
extends TreeViewer
implements IMenuListener

This subclass of the standard JFace tree viewer is used to show a tree view of filter pools within filterpool managers, for a work-with experience.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.jface.viewers.StructuredViewer
StructuredViewer.ColorAndFontCollector, StructuredViewer.ColorAndFontCollectorWithProviders
 
Field Summary
 
Fields inherited from class org.eclipse.jface.viewers.AbstractTreeViewer
ALL_LEVELS
 
Fields inherited from class org.eclipse.jface.viewers.Viewer
WIDGET_DATA_KEY
 
Constructor Summary
SystemFilterWorkWithFilterPoolsTreeViewer(Shell shell, SystemFilterWorkWithFilterPoolsDialog caller, Composite arg0)
          Constructor for SystemFilterWorkWithFilterPoolsTreeViewer
SystemFilterWorkWithFilterPoolsTreeViewer(Shell shell, SystemFilterWorkWithFilterPoolsDialog caller, Composite arg0, int arg1)
          Constructor for SystemFilterWorkWithFilterPoolsTreeViewer
SystemFilterWorkWithFilterPoolsTreeViewer(Shell shell, SystemFilterWorkWithFilterPoolsDialog caller, Tree tree)
          Constructor for SystemFilterWorkWithFilterPoolsTreeViewer
 
Method Summary
 void init(Shell shell, SystemFilterWorkWithFilterPoolsDialog caller)
          Initialize
 void menuAboutToShow(IMenuManager menu)
          Called when the context menu is about to open.
protected  void menuAdd(MenuManager menu, IAction action)
          Private helper method to add an Action to a given menu.
 void refresh()
          Override of refresh from parent
 void setContextMenuActions(IAction[] actions)
          Set the context menu actions to show in the popup
 
Methods inherited from class org.eclipse.jface.viewers.TreeViewer
addTreeListener, assertContentProviderType, buildLabel, cancelEditing, createChildren, doUpdateItem, editElement, getCellEditors, getCellModifier, getChild, getChildren, getColumnProperties, getControl, getExpanded, getItem, getItemCount, getItemCount, getItems, getLabelProvider, getParentElement, getParentItem, getRawChildren, getSelection, getTree, hookControl, internalAdd, internalRefreshStruct, isCellEditorActive, isExpandable, isSameSelection, mapElement, newItem, removeAll, replace, setCellEditors, setCellModifier, setChildCount, setColumnProperties, setExpanded, setLabelProvider, setSelection, showItem
 
Methods inherited from class org.eclipse.jface.viewers.AbstractTreeViewer
add, add, addSelectionListener, addTreeListener, associate, collapseAll, collapseToLevel, createTreeItem, disassociate, doFindInputItem, doFindItem, doUpdateItem, expandAll, expandToLevel, expandToLevel, fireTreeCollapsed, fireTreeExpanded, getAutoExpandLevel, getExpandedElements, getExpandedState, getExpandedTreePaths, getFilteredChildren, getNextItem, getPreviousItem, getSelection, getSelectionFromWidget, getSortedChildren, getTreePathFromItem, getVisibleExpandedElements, handleDoubleSelect, handleTreeCollapse, handleTreeExpand, indexForElement, inputChanged, insert, internalCollapseToLevel, internalExpand, internalExpandToLevel, internalGetWidgetToSelect, internalRefresh, internalRefresh, internalRefresh, internalRemove, internalRemove, labelProviderChanged, remove, remove, remove, removeTreeListener, reveal, scrollDown, scrollUp, setAutoExpandLevel, setContentProvider, setExpandedElements, setExpandedState, setExpandedTreePaths, setSelectionToWidget, setSelectionToWidget, updateChildren, updatePlus
 
Methods inherited from class org.eclipse.jface.viewers.StructuredViewer
addDoubleClickListener, addDragSupport, addDropSupport, addFilter, addOpenListener, addPostSelectionChangedListener, assertElementsNotNull, equals, filter, findItem, findItems, fireDoubleClick, fireOpen, firePostSelectionChanged, getColorAndFontCollector, getComparator, getComparer, getFilters, getRoot, getSorter, handleInvalidSelection, handleLabelProviderChanged, handleOpen, handlePostSelect, handleSelect, hasFilters, internalUpdate, needsRefilter, preservingSelection, refresh, refresh, refresh, refreshItem, removeDoubleClickListener, removeFilter, removeOpenListener, removePostSelectionChangedListener, resetFilters, setComparator, setComparer, setInput, setSelection, setSorter, setUseHashlookup, testFindItem, testFindItems, unmapAllElements, unmapElement, unmapElement, update, update, updateItem, updateSelection, usingElementMap
 
Methods inherited from class org.eclipse.jface.viewers.ContentViewer
getContentProvider, getInput, handleDispose
 
Methods inherited from class org.eclipse.jface.viewers.Viewer
addHelpListener, addSelectionChangedListener, fireHelpRequested, fireSelectionChanged, getData, handleHelpRequest, removeHelpListener, removeSelectionChangedListener, setData, setSelection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.viewers.ISelectionProvider
addSelectionChangedListener, removeSelectionChangedListener, setSelection
 

Constructor Detail

SystemFilterWorkWithFilterPoolsTreeViewer

public SystemFilterWorkWithFilterPoolsTreeViewer(Shell shell,
                                                 SystemFilterWorkWithFilterPoolsDialog caller,
                                                 Composite arg0)
Constructor for SystemFilterWorkWithFilterPoolsTreeViewer


SystemFilterWorkWithFilterPoolsTreeViewer

public SystemFilterWorkWithFilterPoolsTreeViewer(Shell shell,
                                                 SystemFilterWorkWithFilterPoolsDialog caller,
                                                 Composite arg0,
                                                 int arg1)
Constructor for SystemFilterWorkWithFilterPoolsTreeViewer


SystemFilterWorkWithFilterPoolsTreeViewer

public SystemFilterWorkWithFilterPoolsTreeViewer(Shell shell,
                                                 SystemFilterWorkWithFilterPoolsDialog caller,
                                                 Tree tree)
Constructor for SystemFilterWorkWithFilterPoolsTreeViewer

Method Detail

init

public void init(Shell shell,
                 SystemFilterWorkWithFilterPoolsDialog caller)
Initialize


setContextMenuActions

public void setContextMenuActions(IAction[] actions)
Set the context menu actions to show in the popup


refresh

public void refresh()
Override of refresh from parent


menuAboutToShow

public void menuAboutToShow(IMenuManager menu)
Called when the context menu is about to open.

Specified by:
menuAboutToShow in interface IMenuListener

menuAdd

protected void menuAdd(MenuManager menu,
                       IAction action)
Private helper method to add an Action to a given menu. To give the action the opportunity to grey out, we call selectionChanged, but only if the action implements ISelectionChangedListener


RSE
Release 1.0

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