Fix some findbugs
[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.ui.part.ViewPart;
19
20 /**
21 * <b><u>TmfView</u></b>
22 * <p>
23 * TODO: Implement me. Please.
24 */
25 public abstract class TmfView extends ViewPart implements ITmfComponent {
26
27 private final String fName;
28
29 // ------------------------------------------------------------------------
30 // Constructor
31 // ------------------------------------------------------------------------
32
33 public TmfView(String viewName) {
34 super();
35 fName = viewName;
36 TmfSignalManager.register(this);
37 }
38
39 @Override
40 public void dispose() {
41 TmfSignalManager.deregister(this);
42 super.dispose();
43 }
44
45 // ------------------------------------------------------------------------
46 // ITmfComponent
47 // ------------------------------------------------------------------------
48
49 @Override
50 public String getName() {
51 return fName;
52 }
53
54 @Override
55 public void broadcast(TmfSignal signal) {
56 TmfSignalManager.dispatchSignal(signal);
57 }
58
59 }
This page took 0.068774 seconds and 5 git commands to generate.