ctf: Move plugins to the Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.gdbtrace.ui / src / org / eclipse / linuxtools / internal / gdbtrace / ui / GdbTraceUIPlugin.java
1 /*******************************************************************************
2 * Copyright (c) 2011, 2013 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 * Patrick Tasse - Updated for TMF 2.0
12 *******************************************************************************/
13
14 package org.eclipse.linuxtools.internal.gdbtrace.ui;
15
16 import org.eclipse.ui.plugin.AbstractUIPlugin;
17 import org.osgi.framework.BundleContext;
18
19 /**
20 * GDB Tracepoint Analysis UI plug-in activator
21 * @author Francois Chouinard
22 */
23 public class GdbTraceUIPlugin extends AbstractUIPlugin {
24
25 // ------------------------------------------------------------------------
26 // Attributes
27 // ------------------------------------------------------------------------
28
29 /** The plug-in ID */
30 public static final String PLUGIN_ID = "org.eclipse.linuxtools.gdbtrace.ui"; //$NON-NLS-1$
31
32 private static GdbTraceUIPlugin plugin;
33
34 // ------------------------------------------------------------------------
35 // Constructor
36 // ------------------------------------------------------------------------
37
38 /**
39 * Constructor
40 */
41 public GdbTraceUIPlugin() {
42 }
43
44 // ------------------------------------------------------------------------
45 // AbstractUIPlugin
46 // ------------------------------------------------------------------------
47
48 @Override
49 public void start(BundleContext context) throws Exception {
50 super.start(context);
51 plugin = this;
52 }
53
54 @Override
55 public void stop(BundleContext context) throws Exception {
56 plugin = null;
57 super.stop(context);
58 }
59
60 // ------------------------------------------------------------------------
61 // Accessor
62 // ------------------------------------------------------------------------
63
64 /**
65 * Returns the GDB Tracepoints UI plug-in instance.
66 *
67 * @return the GDB Tracepoints UI plug-in instance
68 */
69 public static GdbTraceUIPlugin getDefault() {
70 return plugin;
71 }
72
73 }
This page took 0.033295 seconds and 5 git commands to generate.