tmf: Support right mouse button selection of time graph entries
authorBernd Hufmann <Bernd.Hufmann@ericsson.com>
Thu, 7 Apr 2016 12:25:23 +0000 (08:25 -0400)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Tue, 12 Apr 2016 14:12:43 +0000 (10:12 -0400)
when clicking on the entry in the namespace.

Change-Id: I4561c4d5398300a8206348c4939f49cecd9c1c32
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/70137
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java

index 2b949633942e5a457f02c29ccedcf5dd474c95aa..f05e76d4b8395b62f48267b25a9963cd50ee8803 100644 (file)
@@ -2624,6 +2624,10 @@ public class TimeGraphControl extends TimeGraphBaseControl
                 redraw();
                 updateCursor(e.x, e.stateMask);
                 fTimeGraphScale.setDragRange(fDragX0, fDragX);
+            } else {
+              idx = getItemIndexAtY(e.y);
+              selectItem(idx, false);
+              fireSelectionChanged();
             }
         }
     }
This page took 0.027117 seconds and 5 git commands to generate.