Update TmfTrace as per ITmfTrace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core.tests / src / org / eclipse / linuxtools / ctf / core / tests / CtfCoreTestPlugin.java
1 /*******************************************************************************
2 * Copyright (c) 2011 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.ctf.core.tests;
14
15 import org.eclipse.core.runtime.Plugin;
16 import org.osgi.framework.BundleContext;
17
18 /**
19 * <b><u>TmfCoreTestPlugin</u></b>
20 * <p>
21 * The activator class controls the plug-in life cycle
22 */
23 public class CtfCoreTestPlugin extends Plugin {
24
25 // ========================================================================
26 // Attributes
27 // ========================================================================
28
29 // The plug-in ID
30 public static final String PLUGIN_ID = "org.eclipse.linuxtools.ctf.core.tests"; //$NON-NLS-1$
31
32 // The shared instance
33 private static CtfCoreTestPlugin plugin;
34
35 // ========================================================================
36 // Constructors
37 // ========================================================================
38
39 /**
40 * The constructor
41 */
42 public CtfCoreTestPlugin() {
43 plugin = this;
44 }
45
46 // ========================================================================
47 // Accessors
48 // ========================================================================
49
50 /**
51 * @return the shared instance
52 */
53 public static CtfCoreTestPlugin getPlugin() {
54 return plugin;
55 }
56
57 @Override
58 public void start(BundleContext context) throws Exception {
59 super.start(context);
60 plugin = this;
61 }
62
63 @Override
64 public void stop(BundleContext context) throws Exception {
65 plugin = null;
66 super.stop(context);
67 }
68 }
This page took 0.034698 seconds and 5 git commands to generate.