1 /******************************************************************************
2 * Copyright (c) 2015 Ericsson
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 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.analysis
.timing
.ui
.views
.segmentstore
.density
;
12 import java
.util
.List
;
14 import org
.eclipse
.jdt
.annotation
.Nullable
;
15 import org
.eclipse
.tracecompass
.segmentstore
.core
.ISegment
;
18 * A listener that gets notified when the viewer sees its data changed or its
19 * data selection change.
21 public interface ISegmentStoreDensityViewerDataListener
{
23 * Notification that the data changed in the viewer.
27 * @deprecated Use {@link #viewDataChanged(Iterable)} instead
30 default void dataChanged(List
<ISegment
> newData
) {
35 * Notification that the selection of the data changed in the viewer.
37 * @param newSelectionData
38 * the new selection of the data
39 * @deprecated Use {@link #selectedDataChanged(Iterable)} instead
42 default void dataSelectionChanged(@Nullable List
<ISegment
> newSelectionData
) {
47 * Notification that the data changed in the viewer.
53 default void viewDataChanged(Iterable
<?
extends ISegment
> newData
) {
54 // To be implemented by children
58 * Notification that the selection of the data changed in the viewer.
60 * @param newSelectionData
61 * the new selection of the data
64 default void selectedDataChanged(@Nullable Iterable
<?
extends ISegment
> newSelectionData
) {
65 // To be implemented in children