Rename xxx.lttng to xxx.lttng.core
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / TmfView.java
CommitLineData
b0d3496e 1/*******************************************************************************
e31e01e8 2 * Copyright (c) 2009, 2010 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
13package org.eclipse.linuxtools.tmf.ui.views;
14
15import org.eclipse.linuxtools.tmf.component.ITmfComponent;
8d2e2848 16import org.eclipse.linuxtools.tmf.signal.TmfSignal;
b0d3496e
ASL
17import org.eclipse.linuxtools.tmf.signal.TmfSignalManager;
18import org.eclipse.swt.widgets.Composite;
19import org.eclipse.ui.part.ViewPart;
20
21/**
e31e01e8 22 * <b><u>TmfView</u></b>
b0d3496e
ASL
23 * <p>
24 * TODO: Implement me. Please.
25 */
26public abstract class TmfView extends ViewPart implements ITmfComponent {
27
fc6ccf6f
FC
28 private final String fName;
29
e31e01e8
FC
30 // ------------------------------------------------------------------------
31 // Constructor
32 // ------------------------------------------------------------------------
33
fc6ccf6f 34 public TmfView(String viewName) {
e31e01e8 35 super();
fc6ccf6f 36 fName = viewName;
2fb2eb37 37 TmfSignalManager.register(this);
b0d3496e
ASL
38 }
39
8f50c396
FC
40 @Override
41 public void dispose() {
2fb2eb37 42 TmfSignalManager.deregister(this);
8f50c396
FC
43 super.dispose();
44 }
45
e31e01e8
FC
46 // ------------------------------------------------------------------------
47 // ITmfComponent
48 // ------------------------------------------------------------------------
49
d4011df2 50 @Override
fc6ccf6f
FC
51 public String getName() {
52 return fName;
53 }
54
d4011df2 55 @Override
e31e01e8 56 public void broadcast(TmfSignal signal) {
8d2e2848
FC
57 TmfSignalManager.dispatchSignal(signal);
58 }
59
e31e01e8
FC
60 // ------------------------------------------------------------------------
61 // ViewPart
62 // ------------------------------------------------------------------------
63
b0d3496e
ASL
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
e31e01e8 74}
This page took 0.032423 seconds and 5 git commands to generate.