aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Hufmann2012-11-30 15:26:37 (EST)
committerBernd Hufmann2012-12-03 07:50:30 (EST)
commitebd8836695500e56360109a444b244e233304407 (patch)
tree29f90d3ec1e9dab666bd8202e03f2c34af093744
parent15d0249714b54fed528bbb6f539e5b234c523824 (diff)
downloadorg.eclipse.linuxtools-ebd8836695500e56360109a444b244e233304407.zip
org.eclipse.linuxtools-ebd8836695500e56360109a444b244e233304407.tar.gz
org.eclipse.linuxtools-ebd8836695500e56360109a444b244e233304407.tar.bz2
No range updated signal from TimeGraphControl for selection
Only send range updated signal when the mouse was dragged and not when selection was done without moving the mouse. Change-Id: I6707c10625b1ff5f816a3284e9a137fc78bfec53 Reviewed-on: https://git.eclipse.org/r/8984 Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com> IP-Clean: Patrick Tasse <patrick.tasse@gmail.com> Tested-by: Hudson CI
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java
index 79c5f70..a58ea23 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java
@@ -1679,12 +1679,13 @@ public class TimeGraphControl extends TimeGraphBaseControl implements FocusListe
if (DRAG_NONE != _dragState) {
setCapture(false);
if (e.button == 1 && DRAG_TRACE_ITEM == _dragState) {
- // Notify time provider to check the need for listener
- // notification
- _timeProvider.notifyStartFinishTime();
if (_dragX == _dragX0) { // click without drag
long time = getTimeAtX(e.x);
_timeProvider.setSelectedTimeNotify(time, false);
+ } else {
+ // Notify time provider to check the need for listener
+ // notification
+ _timeProvider.notifyStartFinishTime();
}
_dragState = DRAG_NONE;
} else if (e.button == 1 && DRAG_SPLIT_LINE == _dragState) {