ctf: Update paths in the CTF-Testsuite tests
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / histogram / HistogramCurrentTimeControl.java
index 0ddc726e9893314d319423eeb04e5b7e5991c5f0..74640dcb20fcf91ede085a8a0415517de1569919 100644 (file)
@@ -10,6 +10,7 @@
  *   Francois Chouinard - Initial API and implementation
  *   Francois Chouinard - Moved from LTTng to TMF
  *   Francois Chouinard - Simplified constructor, handle interval format change
+ *   Patrick Tasse - Update value handling
  *******************************************************************************/
 
 package org.eclipse.linuxtools.tmf.ui.views.histogram;
@@ -54,9 +55,6 @@ public class HistogramCurrentTimeControl extends HistogramTextControl {
         TmfSignalManager.register(this);
     }
 
-    /* (non-Javadoc)
-     * @see org.eclipse.linuxtools.tmf.ui.views.histogram.HistogramTextControl#dispose()
-     */
     @Override
     public void dispose() {
         TmfSignalManager.deregister(this);
@@ -73,7 +71,7 @@ public class HistogramCurrentTimeControl extends HistogramTextControl {
             return;
         }
         String string = fTextValue.getText();
-        long value = 0;
+        long value = getValue();
         try {
             value = TmfTimestampFormat.getDefaulTimeFormat().parseValue(string, getValue());
         } catch (ParseException e) {
@@ -94,7 +92,9 @@ public class HistogramCurrentTimeControl extends HistogramTextControl {
 
             // Set and propagate
             setValue(value);
-            fParentView.updateCurrentEventTime(value);
+            fParentView.updateSelectionTime(value, value);
+        } else {
+            setValue(value);
         }
     }
 
This page took 0.045209 seconds and 5 git commands to generate.