Re-structure LTTng sub-project as per the Linux Tools guidelines
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / TmfView.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 2010 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 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.ui.views;
14
15 import org.eclipse.linuxtools.tmf.core.component.ITmfComponent;
16 import org.eclipse.linuxtools.tmf.core.signal.TmfSignal;
17 import org.eclipse.linuxtools.tmf.core.signal.TmfSignalManager;
18 import org.eclipse.swt.widgets.Composite;
19 import org.eclipse.ui.part.ViewPart;
20
21 /**
22 * <b><u>TmfView</u></b>
23 * <p>
24 * TODO: Implement me. Please.
25 */
26 public abstract class TmfView extends ViewPart implements ITmfComponent {
27
28 private final String fName;
29
30 // ------------------------------------------------------------------------
31 // Constructor
32 // ------------------------------------------------------------------------
33
34 public TmfView(String viewName) {
35 super();
36 fName = viewName;
37 TmfSignalManager.register(this);
38 }
39
40 @Override
41 public void dispose() {
42 TmfSignalManager.deregister(this);
43 super.dispose();
44 }
45
46 // ------------------------------------------------------------------------
47 // ITmfComponent
48 // ------------------------------------------------------------------------
49
50 @Override
51 public String getName() {
52 return fName;
53 }
54
55 @Override
56 public void broadcast(TmfSignal signal) {
57 TmfSignalManager.dispatchSignal(signal);
58 }
59
60 // ------------------------------------------------------------------------
61 // ViewPart
62 // ------------------------------------------------------------------------
63
64 @Override
65 public void createPartControl(Composite parent) {
66 // TODO Auto-generated method stub
67 }
68
69 @Override
70 public void setFocus() {
71 // TODO Auto-generated method stub
72 }
73
74 }
This page took 0.040007 seconds and 5 git commands to generate.