90eb3c010806c15938b0f486fa5827cc5d3fbef4
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.analysis.xml.core.tests / src / org / eclipse / linuxtools / tmf / analysis / xml / core / tests / Activator.java
1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 École Polytechnique de Montréal
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 * Geneviève Bastien - Initial implementation and API
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.analysis.xml.core.tests;
14
15 import org.eclipse.core.runtime.Plugin;
16 import org.osgi.framework.BundleContext;
17
18 /**
19 * The activator class controls the plug-in life cycle
20 */
21 public class Activator extends Plugin {
22
23 /**
24 * The plug-in ID
25 */
26 public static final String PLUGIN_ID = "org.eclipse.linuxtools.tmf.analysis.xml.core.tests"; //$NON-NLS-1$
27
28 // The shared instance
29 private static Activator plugin;
30
31 /**
32 * The constructor
33 */
34 public Activator() {
35 }
36
37 @Override
38 public void start(BundleContext context) throws Exception {
39 super.start(context);
40 plugin = this;
41 }
42
43 @Override
44 public void stop(BundleContext context) throws Exception {
45 plugin = null;
46 super.stop(context);
47 }
48
49 /**
50 * Returns the shared instance
51 *
52 * @return the shared instance
53 */
54 public static Activator getDefault() {
55 return plugin;
56 }
57
58 }
This page took 0.031427 seconds and 4 git commands to generate.