All Implemented Interfaces:
IInputProvider, IInputSelectionProvider, IPostSelectionProvider, ISelectionProvider

public class ProgressViewer extends StructuredViewer
The progress viewer.
Note: borrowed from org.eclipse.ui.internal.progress.DetailedProgressViewer
  • Constructor Details

    • ProgressViewer

      public ProgressViewer(org.eclipse.swt.widgets.Composite parent, int style)
      Create a new instance of the receiver with a control that is a child of parent with style style.
      Parameters:
      parent - the parent composite, cannot be null.
      style - the style
  • Method Details

    • add

      public void add(Object[] elements)
      Adds the specified elements to the viewer.
      Parameters:
      elements - the elements to add, cannot be null.
    • remove

      public void remove(Object[] elements)
      Removes the specified elements to the viewer.
      Parameters:
      elements - the elements to remove, cannot be null.
    • getControl

      public org.eclipse.swt.widgets.Control getControl()
      Specified by:
      getControl in class Viewer
    • setFocus

      public void setFocus()
      Set focus on the current selection.
    • reveal

      public void reveal(Object element)
      Specified by:
      reveal in class StructuredViewer
    • selectPrevious

      protected void selectPrevious(ProgressItem item)
      Select the previous item in the receiver.
      Parameters:
      item - the item, cannot be null.
    • selectNext

      protected void selectNext(ProgressItem item)
      Select the next item in the receiver.
      Parameters:
      item - the item, cannot be null.
    • doFindInputItem

      protected org.eclipse.swt.widgets.Widget doFindInputItem(Object element)
      Specified by:
      doFindInputItem in class StructuredViewer
    • doFindItem

      protected org.eclipse.swt.widgets.Widget doFindItem(Object element)
      Specified by:
      doFindItem in class StructuredViewer
    • doUpdateItem

      protected void doUpdateItem(org.eclipse.swt.widgets.Widget item, Object element, boolean fullMap)
      Specified by:
      doUpdateItem in class StructuredViewer
    • getSelectionFromWidget

      protected List<Object> getSelectionFromWidget()
      Specified by:
      getSelectionFromWidget in class StructuredViewer
    • inputChanged

      protected void inputChanged(Object input, Object oldInput)
      Overrides:
      inputChanged in class Viewer
    • internalRefresh

      protected void internalRefresh(Object element)
      Specified by:
      internalRefresh in class StructuredViewer
    • setSelectionToWidget

      protected void setSelectionToWidget(List l, boolean reveal)
      Specified by:
      setSelectionToWidget in class StructuredViewer