ss: Move plugins to Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.analysis.xml.ui.tests / src / org / eclipse / linuxtools / tmf / analysis / xml / ui / tests / Activator.java
CommitLineData
faf37fd0 1/*******************************************************************************
e11e382c 2 * Copyright (c) 2013, 2014 École Polytechnique de Montréal
faf37fd0
GB
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
13package org.eclipse.linuxtools.tmf.analysis.xml.ui.tests;
14
15import org.eclipse.ui.plugin.AbstractUIPlugin;
16import org.osgi.framework.BundleContext;
17
18/**
19 * The activator class controls the plug-in life cycle
20 */
21public class Activator extends AbstractUIPlugin {
22
23 /**
24 * The plug-in ID
25 */
e11e382c 26 public static final String PLUGIN_ID = "org.eclipse.linuxtools.tmf.analysis.xml.ui.tests"; //$NON-NLS-1$
faf37fd0
GB
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.039994 seconds and 5 git commands to generate.