Commit | Line | Data |
---|---|---|
faf37fd0 | 1 | /******************************************************************************* |
c19380ab | 2 | * Copyright (c) 2013, 2015 É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 | ||
2bdf0193 | 13 | package org.eclipse.tracecompass.tmf.analysis.xml.ui.tests; |
faf37fd0 GB |
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 Activator extends AbstractUIPlugin { | |
22 | ||
23 | /** | |
24 | * The plug-in ID | |
25 | */ | |
c19380ab | 26 | public static final String PLUGIN_ID = "org.eclipse.tracecompass.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 | } |