]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.workbench.search/src/org/simantics/workbench/search/Activator.java
Index tokenized lowercase versions of name and types for UI searches
[simantics/platform.git] / bundles / org.simantics.workbench.search / src / org / simantics / workbench / search / Activator.java
1 package org.simantics.workbench.search;
2
3 import org.osgi.framework.BundleActivator;
4 import org.osgi.framework.BundleContext;
5
6 /**
7  * @author Tuukka Lehtonen
8  */
9 public class Activator implements BundleActivator {
10
11     public static final String   PLUGIN_ID = "org.simantics.workbench.search";
12
13         private static BundleContext context;
14
15         static BundleContext getContext() {
16                 return context;
17         }
18
19         /*
20          * (non-Javadoc)
21          * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
22          */
23         public void start(BundleContext bundleContext) throws Exception {
24                 Activator.context = bundleContext;
25         }
26
27         /*
28          * (non-Javadoc)
29          * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
30          */
31         public void stop(BundleContext bundleContext) throws Exception {
32                 Activator.context = null;
33         }
34
35 }