Class TableComparator


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

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      intcompare​(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object e1, java.lang.Object e2)
      Compares two items.
      voidsetSortColumn​(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)
        Constructor.
    • 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.
        Overrides:
        compare in class org.eclipse.jface.viewers.ViewerComparator