Commit | Line | Data |
---|---|---|
4c9c0c87 | 1 | /******************************************************************************* |
d8a230f8 | 2 | * Copyright (c) 2014, 2015 Ericsson |
4c9c0c87 PT |
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 | * Contributors: | |
10 | * Patrick Tasse - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
2bdf0193 | 13 | package org.eclipse.tracecompass.tmf.ui.widgets.timegraph; |
4c9c0c87 | 14 | |
d8a230f8 | 15 | import org.eclipse.jface.viewers.ITreeContentProvider; |
2bdf0193 | 16 | import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model.ITimeGraphEntry; |
4c9c0c87 PT |
17 | |
18 | ||
19 | /** | |
20 | * A content provider mediates between the viewer's model | |
21 | * and the viewer itself. | |
4c9c0c87 | 22 | */ |
d8a230f8 | 23 | public interface ITimeGraphContentProvider extends ITreeContentProvider { |
4c9c0c87 PT |
24 | /** |
25 | * Returns the time graph entries to display in the viewer when its input is | |
26 | * set to the given element. | |
27 | * | |
28 | * @param inputElement | |
29 | * the input element | |
30 | * @return the array of time graph entries to display in the viewer | |
31 | */ | |
d8a230f8 | 32 | @Override |
4c9c0c87 | 33 | public ITimeGraphEntry[] getElements(Object inputElement); |
d8a230f8 PT |
34 | |
35 | /** | |
36 | * @since 1.0 | |
37 | */ | |
38 | @Override | |
39 | public ITimeGraphEntry[] getChildren(Object parentElement); | |
40 | ||
41 | /** | |
42 | * @since 1.0 | |
43 | */ | |
44 | @Override | |
45 | public ITimeGraphEntry getParent(Object element); | |
4c9c0c87 | 46 | } |