[Bug309042] Improved test code coverage and other mundane issues.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.tests / src / org / eclipse / linuxtools / tmf / tests / TmfCoreTestPlugin.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 2010 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 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.tests;
14
15 import org.eclipse.core.runtime.Plugin;
16 import org.osgi.framework.BundleContext;
17
18 /**
19 * <b><u>TmfTestPlugin</u></b>
20 * <p>
21 * The activator class controls the plug-in life cycle
22 */
23 public class TmfCoreTestPlugin extends Plugin {
24
25 // ------------------------------------------------------------------------
26 // Attributes
27 // ------------------------------------------------------------------------
28
29 // The plug-in ID
30 public static final String PLUGIN_ID = "org.eclipse.linuxtools.tmf.tests";
31
32 // The shared instance
33 private static TmfCoreTestPlugin fPlugin;
34
35 // ------------------------------------------------------------------------
36 // Constructors
37 // ------------------------------------------------------------------------
38
39 /**
40 * The constructor
41 */
42 public TmfCoreTestPlugin() {
43 setDefault(this);
44 }
45
46 // ------------------------------------------------------------------------
47 // Accessors
48 // ------------------------------------------------------------------------
49
50 /**
51 * @return the shared instance
52 */
53 public static TmfCoreTestPlugin getDefault() {
54 return fPlugin;
55 }
56
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
80 }
This page took 0.042786 seconds and 5 git commands to generate.