Commit | Line | Data |
---|---|---|
b0d3496e | 1 | /******************************************************************************* |
79a3a76e | 2 | * Copyright (c) 2009 Ericsson |
b0d3496e ASL |
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 | * Francois Chouinard - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.tmf.ui.views; | |
14 | ||
15 | import org.eclipse.linuxtools.tmf.component.ITmfComponent; | |
8d2e2848 | 16 | import org.eclipse.linuxtools.tmf.signal.TmfSignal; |
b0d3496e ASL |
17 | import org.eclipse.linuxtools.tmf.signal.TmfSignalManager; |
18 | import org.eclipse.swt.widgets.Composite; | |
19 | import org.eclipse.ui.part.ViewPart; | |
20 | ||
21 | /** | |
79a3a76e | 22 | * <b><u>TmfViewer</u></b> |
b0d3496e ASL |
23 | * <p> |
24 | * TODO: Implement me. Please. | |
25 | */ | |
26 | public abstract class TmfView extends ViewPart implements ITmfComponent { | |
27 | ||
79a3a76e FC |
28 | /** |
29 | * Constructor | |
30 | */ | |
31 | public TmfView() { | |
32 | TmfSignalManager.addListener(this); | |
b0d3496e ASL |
33 | } |
34 | ||
79a3a76e FC |
35 | /** |
36 | * Destructor | |
37 | */ | |
b0d3496e ASL |
38 | @Override |
39 | public void dispose() { | |
79a3a76e | 40 | TmfSignalManager.removeListener(this); |
b0d3496e ASL |
41 | } |
42 | ||
8d2e2848 FC |
43 | /** |
44 | * broadcastSignal | |
45 | */ | |
46 | public void broadcastSignal(TmfSignal signal) { | |
47 | TmfSignalManager.dispatchSignal(signal); | |
48 | } | |
49 | ||
79a3a76e FC |
50 | /* (non-Javadoc) |
51 | * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite) | |
52 | */ | |
b0d3496e ASL |
53 | @Override |
54 | public void createPartControl(Composite parent) { | |
55 | // TODO Auto-generated method stub | |
56 | } | |
57 | ||
79a3a76e FC |
58 | /* (non-Javadoc) |
59 | * @see org.eclipse.ui.part.WorkbenchPart#setFocus() | |
60 | */ | |
b0d3496e ASL |
61 | @Override |
62 | public void setFocus() { | |
63 | // TODO Auto-generated method stub | |
64 | } | |
65 | ||
79a3a76e | 66 | } |