[290335] Synchronization fix.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / LTTngUiPlugin.java
CommitLineData
6e512b93
ASL
1package org.eclipse.linuxtools.lttng.ui;
2
3import org.eclipse.ui.plugin.AbstractUIPlugin;
4import org.osgi.framework.BundleContext;
5
6/**
7 * The activator class controls the plug-in life cycle
8 */
9public class LTTngUiPlugin extends AbstractUIPlugin {
10
11 // The plug-in ID
12 public static final String PLUGIN_ID = "org.eclipse.linuxtools.lttng.ui";
13
14 // The shared instance
15 private static LTTngUiPlugin plugin;
16
17 /**
18 * The constructor
19 */
20 public LTTngUiPlugin() {
21 }
22
23 /*
24 * (non-Javadoc)
25 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
26 */
27 @Override
28 public void start(BundleContext context) throws Exception {
29 super.start(context);
6e512b93
ASL
30 plugin = this;
31 }
32
33 /*
34 * (non-Javadoc)
35 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
36 */
37 @Override
38 public void stop(BundleContext context) throws Exception {
39 plugin = null;
40 super.stop(context);
41 }
42
43 /**
44 * Returns the shared instance
45 *
46 * @return the shared instance
47 */
48 public static LTTngUiPlugin getDefault() {
49 return plugin;
50 }
51
52}
This page took 0.027055 seconds and 5 git commands to generate.