Update javadoc
[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
6c13869b
FC
15import org.eclipse.linuxtools.tmf.core.component.ITmfComponent;
16import org.eclipse.linuxtools.tmf.core.signal.TmfSignal;
17import org.eclipse.linuxtools.tmf.core.signal.TmfSignalManager;
b0d3496e
ASL
18import org.eclipse.ui.part.ViewPart;
19
20/**
e31e01e8 21 * <b><u>TmfView</u></b>
b0d3496e
ASL
22 * <p>
23 * TODO: Implement me. Please.
24 */
25public abstract class TmfView extends ViewPart implements ITmfComponent {
26
fc6ccf6f
FC
27 private final String fName;
28
e31e01e8
FC
29 // ------------------------------------------------------------------------
30 // Constructor
31 // ------------------------------------------------------------------------
32
fc6ccf6f 33 public TmfView(String viewName) {
e31e01e8 34 super();
fc6ccf6f 35 fName = viewName;
2fb2eb37 36 TmfSignalManager.register(this);
b0d3496e
ASL
37 }
38
8f50c396
FC
39 @Override
40 public void dispose() {
2fb2eb37 41 TmfSignalManager.deregister(this);
8f50c396
FC
42 super.dispose();
43 }
44
e31e01e8
FC
45 // ------------------------------------------------------------------------
46 // ITmfComponent
47 // ------------------------------------------------------------------------
48
d4011df2 49 @Override
fc6ccf6f
FC
50 public String getName() {
51 return fName;
52 }
53
d4011df2 54 @Override
e31e01e8 55 public void broadcast(TmfSignal signal) {
8d2e2848
FC
56 TmfSignalManager.dispatchSignal(signal);
57 }
58
e31e01e8 59}
This page took 0.038762 seconds and 5 git commands to generate.