tmf: Fix selectAndReveal() in timegraphViewer
authorJean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tue, 26 Apr 2016 21:44:36 +0000 (17:44 -0400)
committerJean-Christian Kouame <jean-christian.kouame@ericsson.com>
Thu, 28 Apr 2016 17:16:26 +0000 (13:16 -0400)
This fix handles the selectAndReveal() as if it came from an internal
source (triggered by the user) since the method is called from the
FindDialog. The selection should not be ignored when a pending selection
change is awaiting to be notified.

Change-Id: I1be75843b3fcb463eefa2c7587226205424b9c62
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/71484
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/TimeGraphViewer.java

index 96462542fb3db66691db372aba8b9d35077743a5..31eb390b660e90531631ff54d2a483780e5360ee 100644 (file)
@@ -1823,7 +1823,8 @@ public class TimeGraphViewer implements ITimeDataProvider, IMarkerAxisListener,
         if (parent != null) {
             fTimeGraphCtrl.setExpandedState(parent, true);
         }
-        setSelection(entry);
+        fSelectedEntry = entry;
+        fTimeGraphCtrl.selectItem(entry, false);
         adjustVerticalScrollBar();
     }
 
This page took 0.02516 seconds and 5 git commands to generate.