Class TableComparator

java.lang.Object
org.eclipse.jface.viewers.ViewerComparator
com.iizigo.text.TableComparator

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

    • TableComparator

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

    • setSortColumn

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

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