1 /*******************************************************************************
2 * Copyright (c) 2010, 2014 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 * Patrick Tasse - Initial API and implementation
11 * Bernd Hufmann - Add interface for broadcasting signals asynchronously
12 *******************************************************************************/
14 package org
.eclipse
.linuxtools
.tmf
.ui
.editors
;
16 import org
.eclipse
.linuxtools
.tmf
.core
.component
.ITmfComponent
;
17 import org
.eclipse
.linuxtools
.tmf
.core
.signal
.TmfSignal
;
18 import org
.eclipse
.linuxtools
.tmf
.core
.signal
.TmfSignalManager
;
19 import org
.eclipse
.ui
.part
.EditorPart
;
22 * The main editor abstract class for use in TMF.
25 * @author Patrick Tasse
27 public abstract class TmfEditor
extends EditorPart
implements ITmfComponent
{
29 private final String fName
;
31 // ------------------------------------------------------------------------
33 // ------------------------------------------------------------------------
40 fName
= "TmfEditor"; //$NON-NLS-1$
41 TmfSignalManager
.register(this);
45 public void dispose() {
46 TmfSignalManager
.deregister(this);
50 // ------------------------------------------------------------------------
52 // ------------------------------------------------------------------------
55 public String
getName() {
60 public void broadcast(TmfSignal signal
) {
61 TmfSignalManager
.dispatchSignal(signal
);
68 public void broadcastAsync(TmfSignal signal
) {
69 TmfSignalManager
.dispatchSignalAsync(signal
);
This page took 0.03126 seconds and 5 git commands to generate.