Class TableComparator

  • public class TableComparator
    extends org.eclipse.jface.viewers.ViewerComparator
    The text table sorter for multiple text tables.
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object e1, java.lang.Object e2)
      Compares two items.
      void setSortColumn​(int col)
      The sort column.
      • Methods inherited from class org.eclipse.jface.viewers.ViewerComparator

        category, getComparator, isSorterProperty, sort
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TableComparator

        public TableComparator​(TextTableLabelProvider labelProvider,
                               org.eclipse.swt.widgets.Table table)
    • Method Detail

      • setSortColumn

        public void setSortColumn​(int col)
        The sort column.
      • compare

        public int compare​(org.eclipse.jface.viewers.Viewer viewer,
                           java.lang.Object e1,
                           java.lang.Object e2)
        Compares two items.
        compare in class org.eclipse.jface.viewers.ViewerComparator