208a48670a81738319e28517e418e3cb9dd06dc9
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.remote.ui.tests / src / org / eclipse / tracecompass / tmf / remote / ui / tests / TmfRemoteUITestPlugin.java
1 /*******************************************************************************
2 * Copyright (c) 2015 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 * Bernd Hufmann - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.tracecompass.tmf.remote.ui.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 * @author Bernd Hufmann
22 */
23 public class TmfRemoteUITestPlugin extends Plugin {
24
25 // ------------------------------------------------------------------------
26 // Attributes
27 // ------------------------------------------------------------------------
28
29 /**
30 * The plug-in ID
31 */
32 public static final String PLUGIN_ID = "org.eclipse.tracecompass.tmf.remote.ui.tests";
33
34 // The shared instance
35 private static TmfRemoteUITestPlugin fPlugin;
36
37 // ------------------------------------------------------------------------
38 // Constructors
39 // ------------------------------------------------------------------------
40
41 /**
42 * The constructor
43 */
44 public TmfRemoteUITestPlugin() {
45 setDefault(this);
46 }
47
48 // ------------------------------------------------------------------------
49 // Accessors
50 // ------------------------------------------------------------------------
51
52 /**
53 * @return the shared instance
54 */
55 public static TmfRemoteUITestPlugin getDefault() {
56 return fPlugin;
57 }
58
59 /**
60 * @param plugin the shared instance
61 */
62 private static void setDefault(TmfRemoteUITestPlugin plugin) {
63 fPlugin = plugin;
64 }
65
66 // ------------------------------------------------------------------------
67 // Operations
68 // ------------------------------------------------------------------------
69
70 @Override
71 public void start(BundleContext context) throws Exception {
72 super.start(context);
73 setDefault(this);
74 }
75
76 @Override
77 public void stop(BundleContext context) throws Exception {
78 setDefault(null);
79 super.stop(context);
80 }
81
82 }
This page took 0.040566 seconds and 4 git commands to generate.