tmf: Use basic comparators in TmfSimpleTableViewer
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 11 Aug 2015 17:28:30 +0000 (13:28 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Thu, 13 Aug 2015 18:25:48 +0000 (14:25 -0400)
commitc8688c7fe7c7b8539cac53fca44e109916b7b140
treef87f16d4a8a86c9881d48bab8ae0e2db326619e7
parent1474c201943cc757a6c6661a5f6261ed9545d584
tmf: Use basic comparators in TmfSimpleTableViewer

- Make the method createColumn() public and remove createColumns()
  so that the class can be using without needing to be extended.

- Remove ViewerCompoundComparator. We can use basic
  java.util.Comparator's in the analysis and the view, all the
  way until we convert them to ViewerComparator's to pass to the
  TableViewer object.
  This will allow us to re-use comparators defined in the core
  plugin. Chaining of multiple comparators can be done using
  Guava's Ordering.compound() method.

- Support DeferredContentProvider which must be supplied with the
  sort order and ignores the sorter set on the table viewer.
  Remove the method sortOrderChanged().

Change-Id: I3acd9e79e5a2298707e67cd668c17cca1e428234
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/53584
Reviewed-by: Hudson CI
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/viewers/table/TmfSimpleTableViewer.java
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/viewers/table/ViewerCompoundComparator.java [deleted file]
This page took 0.029044 seconds and 5 git commands to generate.