1 package org.simantics.workbench.search;
\r
3 import org.osgi.framework.BundleActivator;
\r
4 import org.osgi.framework.BundleContext;
\r
7 * @author Tuukka Lehtonen
\r
9 public class Activator implements BundleActivator {
\r
11 public static final String PLUGIN_ID = "org.simantics.workbench.search";
\r
13 private static BundleContext context;
\r
15 static BundleContext getContext() {
\r
21 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
\r
23 public void start(BundleContext bundleContext) throws Exception {
\r
24 Activator.context = bundleContext;
\r
29 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
\r
31 public void stop(BundleContext bundleContext) throws Exception {
\r
32 Activator.context = null;
\r