460ed6a8f6e9721f82d0407e073b9112a2997630
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / LTTngUiPlugin.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 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 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.lttng.ui;
14
15 import org.eclipse.ui.plugin.AbstractUIPlugin;
16 import org.osgi.framework.BundleContext;
17
18 /**
19 * The activator class controls the plug-in life cycle
20 */
21 public class LTTngUiPlugin extends AbstractUIPlugin {
22
23 // The plug-in ID
24 public static final String PLUGIN_ID = "org.eclipse.linuxtools.lttng.ui";
25
26 // The shared instance
27 private static LTTngUiPlugin plugin;
28
29 /**
30 * The constructor
31 */
32 public LTTngUiPlugin() {
33 }
34
35 /*
36 * (non-Javadoc)
37 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
38 */
39 @Override
40 public void start(BundleContext context) throws Exception {
41 super.start(context);
42 TraceDebug.init();
43 plugin = this;
44 }
45
46 /*
47 * (non-Javadoc)
48 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
49 */
50 @Override
51 public void stop(BundleContext context) throws Exception {
52 plugin = null;
53 super.stop(context);
54 }
55
56 /**
57 * Returns the shared instance
58 *
59 * @return the shared instance
60 */
61 public static LTTngUiPlugin getDefault() {
62 return plugin;
63 }
64
65 }
This page took 0.031772 seconds and 4 git commands to generate.