Commit | Line | Data |
---|---|---|
ff71e543 | 1 | /******************************************************************************* |
c19380ab | 2 | * Copyright (c) 2014, 2015 Ericsson |
ff71e543 MK |
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 | ||
7ce90559 | 13 | package org.eclipse.tracecompass.btf.core.tests; |
ff71e543 MK |
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 | */ | |
c19380ab | 29 | public static final String PLUGIN_ID = "org.eclipse.tracecompass.btf.core.tests"; |
ff71e543 MK |
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 | } |