Bug 315605: [LTTng] Document exact version of liblttvtraceread that works
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.tests / src / org / eclipse / linuxtools / tmf / tests / TmfCoreTestPlugin.java
CommitLineData
d18dd09b 1/*******************************************************************************
cbd4ad82 2 * Copyright (c) 2009, 2010 Ericsson
d18dd09b
ASL
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 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13package org.eclipse.linuxtools.tmf.tests;
14
15import org.eclipse.core.runtime.Plugin;
cbd4ad82 16import org.osgi.framework.BundleContext;
d18dd09b
ASL
17
18/**
19 * <b><u>TmfTestPlugin</u></b>
20 * <p>
21 * The activator class controls the plug-in life cycle
22 */
23public class TmfCoreTestPlugin extends Plugin {
24
cbd4ad82 25 // ------------------------------------------------------------------------
d18dd09b 26 // Attributes
cbd4ad82 27 // ------------------------------------------------------------------------
d18dd09b
ASL
28
29 // The plug-in ID
30 public static final String PLUGIN_ID = "org.eclipse.linuxtools.tmf.tests";
31
32 // The shared instance
cbd4ad82 33 private static TmfCoreTestPlugin fPlugin;
d18dd09b 34
cbd4ad82 35 // ------------------------------------------------------------------------
d18dd09b 36 // Constructors
cbd4ad82 37 // ------------------------------------------------------------------------
d18dd09b
ASL
38
39 /**
40 * The constructor
41 */
42 public TmfCoreTestPlugin() {
cbd4ad82 43 setDefault(this);
d18dd09b
ASL
44 }
45
cbd4ad82 46 // ------------------------------------------------------------------------
d18dd09b 47 // Accessors
cbd4ad82 48 // ------------------------------------------------------------------------
d18dd09b
ASL
49
50 /**
51 * @return the shared instance
52 */
cbd4ad82
FC
53 public static TmfCoreTestPlugin getDefault() {
54 return fPlugin;
d18dd09b
ASL
55 }
56
cbd4ad82
FC
57 /**
58 * @param plugin the shared instance
59 */
60 private static void setDefault(TmfCoreTestPlugin plugin) {
61 fPlugin = plugin;
62 }
63
64 // ------------------------------------------------------------------------
65 // Operations
66 // ------------------------------------------------------------------------
67
68 @Override
69 public void start(BundleContext context) throws Exception {
70 super.start(context);
71 setDefault(this);
72 }
73
74 @Override
75 public void stop(BundleContext context) throws Exception {
76 setDefault(null);
77 super.stop(context);
78 }
79
d18dd09b 80}
This page took 0.028587 seconds and 5 git commands to generate.