tmf: remove deprecated methods from tmf
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.timing.ui / src / org / eclipse / tracecompass / analysis / timing / ui / views / segmentstore / density / ISegmentStoreDensityViewerDataListener.java
CommitLineData
b23cbbfc
MAL
1/******************************************************************************
2 * Copyright (c) 2015 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
9
10package org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.density;
11
12import java.util.List;
13
07daa331 14import org.eclipse.jdt.annotation.Nullable;
b23cbbfc
MAL
15import org.eclipse.tracecompass.segmentstore.core.ISegment;
16
17/**
18 * A listener that gets notified when the viewer sees its data changed or its
19 * data selection change.
20 */
21public interface ISegmentStoreDensityViewerDataListener {
22 /**
23 * Notification that the data changed in the viewer.
24 *
25 * @param newData
26 * the new data
fc409c43 27 * @deprecated Use {@link #viewDataChanged(Iterable)} instead
b23cbbfc 28 */
fc409c43 29 @Deprecated
b23cbbfc
MAL
30 void dataChanged(List<ISegment> newData);
31
32 /**
33 * Notification that the selection of the data changed in the viewer.
34 *
35 * @param newSelectionData
36 * the new selection of the data
fc409c43 37 * @deprecated Use {@link #selectedDataChanged(Iterable)} instead
b23cbbfc 38 */
fc409c43 39 @Deprecated
07daa331 40 void dataSelectionChanged(@Nullable List<ISegment> newSelectionData);
fc409c43
GB
41
42 /**
43 * Notification that the data changed in the viewer.
44 *
45 * @param newData
46 * the new data
47 * @since 1.4
48 */
49 default void viewDataChanged(Iterable<? extends ISegment> newData) {
50 // To be implemented by children
51 }
52
53 /**
54 * Notification that the selection of the data changed in the viewer.
55 *
56 * @param newSelectionData
57 * the new selection of the data
58 * @since 1.4
59 */
60 default void selectedDataChanged(@Nullable Iterable<? extends ISegment> newSelectionData) {
61 // To be implemented in children
62 }
b23cbbfc 63}
This page took 0.041573 seconds and 5 git commands to generate.