btf: Initial Best Trace Format commit
[deliverable/tracecompass.git] / org.eclipse.linuxtools.btf.core.tests / src / org / eclipse / linuxtools / btf / core / tests / BtfTestPlugin.java
1 /*******************************************************************************
2 * Copyright (c) 2014 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 * Matthew Khouzam - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.btf.core.tests;
14
15 import org.osgi.framework.Bundle;
16 import org.osgi.framework.BundleActivator;
17 import org.osgi.framework.BundleContext;
18
19 /**
20 * Stub to do nothing
21 *
22 * @author Matthew Khouzam
23 */
24 public class BtfTestPlugin implements BundleActivator {
25
26 /**
27 * The plug-in ID
28 */
29 public static final String PLUGIN_ID = "org.eclipse.linuxtools.btf.core.tests";
30
31 private static BundleContext fContext;
32
33 /**
34 * Gets the bundle of this plug-in.
35 *
36 * @return the oel.btf.core.tests bundle
37 */
38 public static Bundle getBundle() {
39 if (fContext == null) {
40 return null;
41 }
42 return fContext.getBundle();
43 }
44
45 @Override
46 public void start(BundleContext context) throws Exception {
47 fContext = context;
48 }
49
50 @Override
51 public void stop(BundleContext context) throws Exception {
52
53 }
54
55 }
This page took 0.036095 seconds and 5 git commands to generate.