Class WorkbenchViewerSorter


@Deprecated public class WorkbenchViewerSorter extends ViewerSorter
Deprecated.
as of 3.3, use WorkbenchViewerComparator instead
A viewer sorter that sorts elements with registered workbench adapters by their text property. Note that capitalization differences are not considered by this sorter, so a > B > c
See Also:
  • Constructor Details

    • WorkbenchViewerSorter

      public WorkbenchViewerSorter()
      Deprecated.
      Creates a workbench viewer sorter using the default collator.
    • WorkbenchViewerSorter

      public WorkbenchViewerSorter(Collator collator)
      Deprecated.
      Creates a workbench viewer sorter using the given collator.
      Parameters:
      collator - the collator to use to sort strings
  • Method Details

    • isSorterProperty

      public boolean isSorterProperty(Object element, String propertyId)
      Deprecated.
      Description copied from class: ViewerComparator
      Returns whether this viewer sorter would be affected by a change to the given property of the given element.

      The default implementation of this method returns false. Subclasses may reimplement.

      Overrides:
      isSorterProperty in class ViewerComparator
      Parameters:
      element - the element
      propertyId - the property
      Returns:
      true if the sorting would be affected, and false if it would be unaffected