Class FilteredCommonViewer

All Implemented Interfaces:
IViewerToolTip, IInputProvider, IInputSelectionProvider, IPostSelectionProvider, ISelectionProvider

public class FilteredCommonViewer extends CommonViewerEx
A little extended Common Viewer for searching used in the Designer dialogs and parts, as well as a drag-drop enhancement.
Author:
Christopher Mindus
  • Constructor Details

    • FilteredCommonViewer

      public FilteredCommonViewer(Composite parent, int style, IFilter filter)
      Creates the common viewer.
      Parameters:
      parent - Parent composite.
      style - SWT style for tree control.
      filter - The filter instance.
    • FilteredCommonViewer

      public FilteredCommonViewer(Composite parent, int style, IFilter filter, int flags)
      Creates the common viewer.
      Parameters:
      parent - Parent composite.
      style - SWT style for tree control.
      filter - The filter instance.
      flags - The presentation flags, from INavigatorPresentation.
  • Method Details

    • init

      protected void init()
      Initializes the content provider, label provider, and drag and drop support. Should not be called by clients -- this method is invoked when the constructor is invoked.
      Overrides:
      init in class CommonViewerEx
    • setLabelProvider

      public void setLabelProvider(IBaseLabelProvider labelProvider)
      Overrides the setting of the label provider to add support for the search...
      Overrides:
      setLabelProvider in class ColumnViewer
    • setFilters

      public void setFilters(ViewerFilter... filters)
      Called to set the filters on this viewer.
      Overrides:
      setFilters in class StructuredViewer
    • getFilterInstance

      public EndNodeTextFilter getFilterInstance()
      Gets the filter instance.