1 /*******************************************************************************
2 * Copyright (c) 2009, 2010, 2012 Ericsson
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
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.views
;
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
;
21 * Basic abstract TMF view class implementation.
23 * It registers any sub class to the signal manager for receiving and sending
27 * @author Francois Chouinard
29 public abstract class TmfView
extends ViewPart
implements ITmfComponent
{
31 private final String fName
;
33 // ------------------------------------------------------------------------
35 // ------------------------------------------------------------------------
38 * Constructor. Creates a TMF view and registers to the signal manager.
40 * @param viewName A view name
42 public TmfView(String viewName
) {
45 TmfSignalManager
.register(this);
49 * Disposes this view and deregisters itself from the signal manager
50 * @see org.eclipse.ui.part.WorkbenchPart#dispose()
53 public void dispose() {
54 TmfSignalManager
.deregister(this);
58 // ------------------------------------------------------------------------
60 // ------------------------------------------------------------------------
64 * @see org.eclipse.linuxtools.tmf.core.component.ITmfComponent#getName()
67 public String
getName() {
73 * @see org.eclipse.linuxtools.tmf.core.component.ITmfComponent#broadcast(org.eclipse.linuxtools.tmf.core.signal.TmfSignal)
76 public void broadcast(TmfSignal signal
) {
77 TmfSignalManager
.dispatchSignal(signal
);
This page took 0.039777 seconds and 5 git commands to generate.