Add LTTng2 Kernel Analysis plug-ins
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.kernel.core.tests / src / org / eclipse / linuxtools / lttng2 / kernel / core / tests / Activator.java
1 /*******************************************************************************
2 * Copyright (c) 2012 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.lttng2.kernel.core.tests;
14
15 import org.eclipse.core.runtime.Plugin;
16 import org.osgi.framework.BundleContext;
17
18 /**
19 * <b><u>Activator</u></b>
20 * <p>
21 * The activator class controls the plug-in life cycle
22 */
23 public class Activator extends Plugin {
24
25 // ------------------------------------------------------------------------
26 // Attributes
27 // ------------------------------------------------------------------------
28
29 /**
30 * The plug-in ID
31 */
32 public static final String PLUGIN_ID = "org.eclipse.linuxtools.lttng2.core.tests"; //$NON-NLS-1$
33
34 /**
35 * The shared instance
36 */
37 private static Activator plugin;
38
39 // ------------------------------------------------------------------------
40 // Constructors
41 // ------------------------------------------------------------------------
42
43 /**
44 * The constructor
45 */
46 public Activator() {
47 }
48
49 // ------------------------------------------------------------------------
50 // Accessors
51 // ------------------------------------------------------------------------
52
53 /**
54 * Returns the shared instance
55 *
56 * @return the shared instance
57 */
58 public static Activator getDefault() {
59 return plugin;
60 }
61
62 // ------------------------------------------------------------------------
63 // Operators
64 // ------------------------------------------------------------------------
65
66 /*
67 * (non-Javadoc)
68 * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
69 */
70 @Override
71 public void start(BundleContext context) throws Exception {
72 super.start(context);
73 plugin = this;
74 }
75
76 /*
77 * (non-Javadoc)
78 * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
79 */
80 @Override
81 public void stop(BundleContext context) throws Exception {
82 plugin = null;
83 super.stop(context);
84 }
85
86 }
This page took 0.032206 seconds and 5 git commands to generate.