tmf: Bug 494952: Remove deadlock in Time Chart view
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / tmf / ui / widgets / timegraph / widgets / ITimeDataProvider.java
index e83509f2eae507c44ac73023303e92def44c2b68..b60f22719ed4906cfbd2b7826e8de589bf790e3b 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * Copyright (c) 2007, 2015 Intel Corporation, Ericsson
+ * Copyright (c) 2007, 2016 Intel Corporation, Ericsson
  *
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
@@ -176,6 +176,21 @@ public interface ITimeDataProvider {
      */
     void resetStartFinishTime();
 
+    /**
+     * Reset the start and end times.
+     *
+     * @param notify
+     *            if true, notify the registered listeners
+     * @since 2.0
+     */
+    default void resetStartFinishTime(boolean notify) {
+        if (notify) {
+            setStartFinishTimeNotify(getMinTime(), getMaxTime());
+        } else {
+            setStartFinishTime(getMinTime(), getMaxTime());
+        }
+    }
+
     /**
      * @return The names' width
      */
This page took 0.025729 seconds and 5 git commands to generate.