ss: Move plugins to Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / histogram / HistogramCurrentTimeControl.java
index 74640dcb20fcf91ede085a8a0415517de1569919..e94254484e1c4b1394971e27ccbac4f7ccc3bf9a 100644 (file)
@@ -18,7 +18,6 @@ package org.eclipse.linuxtools.tmf.ui.views.histogram;
 import java.text.ParseException;
 
 import org.eclipse.linuxtools.tmf.core.signal.TmfSignalHandler;
-import org.eclipse.linuxtools.tmf.core.signal.TmfSignalManager;
 import org.eclipse.linuxtools.tmf.core.signal.TmfTimestampFormatUpdateSignal;
 import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp;
 import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimeRange;
@@ -44,20 +43,14 @@ public class HistogramCurrentTimeControl extends HistogramTextControl {
      *
      * @param parentView A parent histogram view
      * @param parent A parent composite to draw in
-     * @param groupLabel A group value
+     * @param label A label
      * @param value A value
      * @since 2.0
      */
     public HistogramCurrentTimeControl(HistogramView parentView, Composite parent,
-            String groupLabel, long value)
+            String label, long value)
     {
-        super(parentView, parent, groupLabel, value);
-        TmfSignalManager.register(this);
-    }
-
-    @Override
-    public void dispose() {
-        TmfSignalManager.deregister(this);
+        super(parentView, parent, label, value);
     }
 
     // ------------------------------------------------------------------------
@@ -92,12 +85,23 @@ public class HistogramCurrentTimeControl extends HistogramTextControl {
 
             // Set and propagate
             setValue(value);
-            fParentView.updateSelectionTime(value, value);
+            updateSelectionTime(value);
         } else {
             setValue(value);
         }
     }
 
+    /**
+     * Update the selection time
+     *
+     * @param time
+     *            the new selected time
+     * @since 2.2
+     */
+    protected void updateSelectionTime(long time) {
+        fParentView.updateSelectionTime(time, time);
+    }
+
     @Override
     public void setValue(long time) {
         if (time != Long.MIN_VALUE) {
This page took 0.027454 seconds and 5 git commands to generate.