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 | ||
13 | package org.eclipse.linuxtools.tmf.ui.widgets.timegraph; | |
14 | ||
15 | import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeGraphEntry; | |
16 | ||
17 | ||
18 | /** | |
19 | * A content provider mediates between the viewer's model | |
20 | * and the viewer itself. | |
21 | * | |
22 | * @since 3.0 | |
23 | */ | |
24 | public interface ITimeGraphContentProvider { | |
25 | /** | |
26 | * Returns the time graph entries to display in the viewer when its input is | |
27 | * set to the given element. | |
28 | * | |
29 | * @param inputElement | |
30 | * the input element | |
31 | * @return the array of time graph entries to display in the viewer | |
32 | */ | |
33 | public ITimeGraphEntry[] getElements(Object inputElement); | |
34 | } |