timing: Have the segment store view use lazy iterables
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.timing.ui / src / org / eclipse / tracecompass / analysis / timing / ui / views / segmentstore / density / ISegmentStoreDensityViewerDataListener.java
index 2089753e74843b8b2ff952a46527b1dffd7dbb9d..98a0a673d498d9cfe3caebcef974bc3630e632b6 100644 (file)
@@ -24,7 +24,9 @@ public interface ISegmentStoreDensityViewerDataListener {
      *
      * @param newData
      *            the new data
+     * @deprecated Use {@link #viewDataChanged(Iterable)} instead
      */
+    @Deprecated
     void dataChanged(List<ISegment> newData);
 
     /**
@@ -32,6 +34,30 @@ public interface ISegmentStoreDensityViewerDataListener {
      *
      * @param newSelectionData
      *            the new selection of the data
+     * @deprecated Use {@link #selectedDataChanged(Iterable)} instead
      */
+    @Deprecated
     void dataSelectionChanged(@Nullable List<ISegment> newSelectionData);
+
+    /**
+     * Notification that the data changed in the viewer.
+     *
+     * @param newData
+     *            the new data
+     * @since 1.4
+     */
+    default void viewDataChanged(Iterable<? extends ISegment> newData) {
+        // To be implemented by children
+    }
+
+    /**
+     * Notification that the selection of the data changed in the viewer.
+     *
+     * @param newSelectionData
+     *            the new selection of the data
+     * @since 1.4
+     */
+    default void selectedDataChanged(@Nullable Iterable<? extends ISegment> newSelectionData) {
+        // To be implemented in children
+    }
 }
This page took 0.024695 seconds and 5 git commands to generate.