Commit | Line | Data |
---|---|---|
4c9c0c87 PT |
1 | /******************************************************************************* |
2 | * Copyright (c) 2014 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 | * Contributors: | |
10 | * Patrick Tasse - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
2bdf0193 | 13 | package org.eclipse.tracecompass.tmf.ui.widgets.timegraph; |
4c9c0c87 | 14 | |
2bdf0193 | 15 | import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model.ITimeGraphEntry; |
4c9c0c87 PT |
16 | |
17 | ||
18 | /** | |
19 | * A content provider mediates between the viewer's model | |
20 | * and the viewer itself. | |
4c9c0c87 PT |
21 | */ |
22 | public interface ITimeGraphContentProvider { | |
23 | /** | |
24 | * Returns the time graph entries to display in the viewer when its input is | |
25 | * set to the given element. | |
26 | * | |
27 | * @param inputElement | |
28 | * the input element | |
29 | * @return the array of time graph entries to display in the viewer | |
30 | */ | |
31 | public ITimeGraphEntry[] getElements(Object inputElement); | |
32 | } |