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
CommitLineData
6de2f761
PT
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
14package org.eclipse.linuxtools.internal.gdbtrace.ui;
15
16import org.eclipse.ui.plugin.AbstractUIPlugin;
17import org.osgi.framework.BundleContext;
18
19/**
20 * GDB Tracepoint Analysis UI plug-in activator
21 * @author Francois Chouinard
22 */
8343b1f5 23public class GdbTraceUIPlugin extends AbstractUIPlugin {
6de2f761
PT
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
8343b1f5 32 private static GdbTraceUIPlugin plugin;
6de2f761
PT
33
34 // ------------------------------------------------------------------------
35 // Constructor
36 // ------------------------------------------------------------------------
37
38 /**
39 * Constructor
40 */
8343b1f5 41 public GdbTraceUIPlugin() {
6de2f761
PT
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 */
8343b1f5 69 public static GdbTraceUIPlugin getDefault() {
6de2f761
PT
70 return plugin;
71 }
72
73}
This page took 0.053593 seconds and 5 git commands to generate.