Fix event table selection handling
authorPatrick Tasse <patrick.tasse@gmail.com>
Fri, 25 Jan 2013 23:06:28 +0000 (18:06 -0500)
committerPatrick Tasse <patrick.tasse@gmail.com>
Mon, 28 Jan 2013 21:38:01 +0000 (16:38 -0500)
A SelectionChangedEvent should be fired when the selection changes due
to a Search match.

The selected rank should be updated when the selection changes due to
the gotoMarker() handling.

Change-Id: Iaec404049edf126f43ee6d049cdc8263f4e1c5db
Reviewed-on: https://git.eclipse.org/r/9941
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java

index c68bc6e7611d6adb81c9fc2b87c699480dd19a9b..aad9495b2424702388db4afc8bde49da5d88ac62 100644 (file)
@@ -1618,6 +1618,7 @@ public class TmfEventsTable extends TmfComponent implements IGotoMarker, IColorS
                     if (foundTimestamp != null) {
                         broadcast(new TmfTimeSynchSignal(TmfEventsTable.this, foundTimestamp));
                     }
+                    fireSelectionChanged(new SelectionChangedEvent(TmfEventsTable.this, getSelection()));
                     synchronized (fSearchSyncObj) {
                         fSearchThread = null;
                     }
@@ -2005,6 +2006,7 @@ public class TmfEventsTable extends TmfComponent implements IGotoMarker, IColorS
             } else if (rank >= fTable.getItemCount()) {
                 fPendingGotoRank = rank;
             }
+            fSelectedRank = rank;
             fTable.setSelection(index + 1); // +1 for header row
         }
     }
This page took 0.035904 seconds and 5 git commands to generate.