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;
*
* @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);
}
// ------------------------------------------------------------------------
// 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) {