Commit | Line | Data |
---|---|---|
05627bda | 1 | /******************************************************************************* |
ed902a2b | 2 | * Copyright (c) 2012, 2014 Ericsson |
05627bda MD |
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 | * Mathieu Denis <mathieu.denis@polymtl.ca> - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
2bdf0193 | 13 | package org.eclipse.tracecompass.tmf.ui.viewers; |
05627bda | 14 | |
05627bda | 15 | import org.eclipse.swt.widgets.Control; |
2bdf0193 | 16 | import org.eclipse.tracecompass.tmf.core.component.ITmfComponent; |
05627bda MD |
17 | |
18 | /** | |
19 | * Interface to viewers. | |
20 | * | |
21 | * Viewers are to be put into views which need to know how to refresh the | |
22 | * viewer's contents. | |
23 | * | |
24 | * @author Mathieu Denis | |
05627bda MD |
25 | */ |
26 | public interface ITmfViewer extends ITmfComponent { | |
27 | ||
28 | /** | |
29 | * Returns the primary control associated with this viewer. | |
30 | * | |
31 | * @return the SWT control which displays this viewer's contents | |
32 | */ | |
57a2a5ca | 33 | Control getControl(); |
05627bda MD |
34 | |
35 | /** | |
36 | * Tells the viewer to refresh its contents. | |
37 | */ | |
57a2a5ca | 38 | void refresh(); |
05627bda | 39 | } |