Commit | Line | Data |
---|---|---|
abfad0aa FC |
1 | /*******************************************************************************\r |
2 | * Copyright (c) 2010 Ericsson\r | |
013a5f1c | 3 | *\r |
abfad0aa FC |
4 | * All rights reserved. This program and the accompanying materials are\r |
5 | * made available under the terms of the Eclipse Public License v1.0 which\r | |
6 | * accompanies this distribution, and is available at\r | |
7 | * http://www.eclipse.org/legal/epl-v10.html\r | |
013a5f1c | 8 | *\r |
abfad0aa FC |
9 | * Contributors:\r |
10 | * Patrick Tasse - Initial API and implementation\r | |
11 | *******************************************************************************/\r | |
12 | \r | |
13 | package org.eclipse.linuxtools.tmf.ui.editors;\r | |
14 | \r | |
6c13869b FC |
15 | import org.eclipse.linuxtools.tmf.core.component.ITmfComponent;\r |
16 | import org.eclipse.linuxtools.tmf.core.signal.TmfSignal;\r | |
17 | import org.eclipse.linuxtools.tmf.core.signal.TmfSignalManager;\r | |
abfad0aa FC |
18 | import org.eclipse.ui.part.MultiPageEditorPart;\r |
19 | \r | |
013a5f1c AM |
20 | /**\r |
21 | * Multi-page editor part abstract class for use in TMF.\r | |
22 | *\r | |
23 | * @version 1.0\r | |
24 | * @author Patrick Tasse\r | |
25 | */\r | |
abfad0aa FC |
26 | public abstract class TmfMultiPageEditorPart extends MultiPageEditorPart implements ITmfComponent {\r |
27 | \r | |
28 | private final String fName;\r | |
013a5f1c | 29 | \r |
abfad0aa FC |
30 | // ------------------------------------------------------------------------\r |
31 | // Constructor\r | |
32 | // ------------------------------------------------------------------------\r | |
33 | \r | |
013a5f1c AM |
34 | /**\r |
35 | * Default constructor\r | |
36 | */\r | |
abfad0aa FC |
37 | public TmfMultiPageEditorPart() {\r |
38 | super();\r | |
3b38ea61 | 39 | fName = "TmfMultiPageEditorPart"; //$NON-NLS-1$\r |
abfad0aa FC |
40 | TmfSignalManager.register(this);\r |
41 | }\r | |
42 | \r | |
43 | @Override\r | |
44 | public void dispose() {\r | |
45 | TmfSignalManager.deregister(this);\r | |
46 | super.dispose();\r | |
47 | }\r | |
48 | \r | |
49 | // ------------------------------------------------------------------------\r | |
50 | // ITmfComponent\r | |
51 | // ------------------------------------------------------------------------\r | |
52 | \r | |
d4011df2 FC |
53 | @Override\r |
54 | public String getName() {\r | |
abfad0aa FC |
55 | return fName;\r |
56 | }\r | |
013a5f1c | 57 | \r |
d4011df2 FC |
58 | @Override\r |
59 | public void broadcast(TmfSignal signal) {\r | |
abfad0aa FC |
60 | TmfSignalManager.dispatchSignal(signal);\r |
61 | }\r | |
62 | }\r |