From 45f63682bf726c7908408af26f0512769ca40951 Mon Sep 17 00:00:00 2001 From: Patrick Tasse Date: Wed, 9 Sep 2015 18:09:52 -0400 Subject: [PATCH] tmf: Bug 477012: Time graph fails to send window range notification Change-Id: I29b57b77db71b78deb0161e57c24135f3af60191 Signed-off-by: Patrick Tasse Reviewed-on: https://git.eclipse.org/r/55596 Reviewed-by: Hudson CI Reviewed-by: Bernd Hufmann Tested-by: Bernd Hufmann --- .../tmf/ui/widgets/timegraph/TimeGraphViewer.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/TimeGraphViewer.java b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/TimeGraphViewer.java index 8ea4762d43..7bb90fe824 100644 --- a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/TimeGraphViewer.java +++ b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/TimeGraphViewer.java @@ -755,6 +755,7 @@ public class TimeGraphViewer implements ITimeDataProvider, SelectionListener { return; } setStartFinishTimeInt(time0, time1); + updateExtSynchValues(); } private void setStartFinishTimeInt(long time0, long time1) { @@ -1072,8 +1073,8 @@ public class TimeGraphViewer implements ITimeDataProvider, SelectionListener { listener.timeRangeUpdated(event); } - // update external synch timers - updateExtSynchTimers(); + // update external synch values + updateExtSynchValues(); } } @@ -1151,14 +1152,14 @@ public class TimeGraphViewer implements ITimeDataProvider, SelectionListener { // update notification time values since we are now in synch with the // external application - updateExtSynchTimers(); + updateExtSynchValues(); } /** - * update the cache timers used to identify the need to send a time window + * update the cache values used to identify the need to send a time window * update to external registered listeners */ - private void updateExtSynchTimers() { + private void updateExtSynchValues() { // last time notification cache fTime0ExtSynch = fTime0; fTime1ExtSynch = fTime1; -- 2.34.1