(no commit message)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / TmfView.java
CommitLineData
b0d3496e
ASL
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
13package org.eclipse.linuxtools.tmf.ui.views;
14
15import org.eclipse.linuxtools.tmf.component.ITmfComponent;
16import org.eclipse.linuxtools.tmf.signal.TmfSignal;
17import org.eclipse.linuxtools.tmf.signal.TmfSignalManager;
18import org.eclipse.swt.widgets.Composite;
19import org.eclipse.ui.part.ViewPart;
20
21/**
22 * <b><u>TmfView</u></b>
23 * <p>
24 * TODO: Implement me. Please.
25 */
26public 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 public String getName() {
51 return fName;
52 }
53
54 public void broadcast(TmfSignal signal) {
55 TmfSignalManager.dispatchSignal(signal);
56 }
57
58 // ------------------------------------------------------------------------
59 // ViewPart
60 // ------------------------------------------------------------------------
61
62 @Override
63 public void createPartControl(Composite parent) {
64 // TODO Auto-generated method stub
65 }
66
67 @Override
68 public void setFocus() {
69 // TODO Auto-generated method stub
70 }
71
72}
This page took 0.02705 seconds and 5 git commands to generate.