Commit | Line | Data |
---|---|---|
faf37fd0 | 1 | /******************************************************************************* |
60ae41e1 | 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 | ||
13 | package org.eclipse.linuxtools.tmf.analysis.xml.core.tests; | |
14 | ||
e11e382c | 15 | import org.eclipse.core.runtime.Plugin; |
faf37fd0 GB |
16 | import org.osgi.framework.BundleContext; |
17 | ||
18 | /** | |
19 | * The activator class controls the plug-in life cycle | |
20 | */ | |
e11e382c | 21 | public class Activator extends Plugin { |
faf37fd0 GB |
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 | } |