Re-structure LTTng sub-project as per the Linux Tools guidelines
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / editors / TmfMultiPageEditorPart.java
1 /*******************************************************************************
2 * Copyright (c) 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 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.ui.editors;
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.MultiPageEditorPart;
19
20 public abstract class TmfMultiPageEditorPart extends MultiPageEditorPart implements ITmfComponent {
21
22 private final String fName;
23
24 // ------------------------------------------------------------------------
25 // Constructor
26 // ------------------------------------------------------------------------
27
28 public TmfMultiPageEditorPart() {
29 super();
30 fName = "TmfMultiPageEditorPart"; //$NON-NLS-1$
31 TmfSignalManager.register(this);
32 }
33
34 @Override
35 public void dispose() {
36 TmfSignalManager.deregister(this);
37 super.dispose();
38 }
39
40 // ------------------------------------------------------------------------
41 // ITmfComponent
42 // ------------------------------------------------------------------------
43
44 @Override
45 public String getName() {
46 return fName;
47 }
48
49 @Override
50 public void broadcast(TmfSignal signal) {
51 TmfSignalManager.dispatchSignal(signal);
52 }
53 }
This page took 0.031544 seconds and 5 git commands to generate.