]> gerrit.simantics Code Review - simantics/r.git/blob - org.simantics.r.fileimport/src/org/simantics/r/fileimport/Activator.java
f3be837d9c02ab3d10072ce542240cd322e38bf1
[simantics/r.git] / org.simantics.r.fileimport / src / org / simantics / r / fileimport / Activator.java
1 package org.simantics.r.fileimport;\r
2 \r
3 import org.osgi.framework.BundleActivator;\r
4 import org.osgi.framework.BundleContext;\r
5 \r
6 public class Activator implements BundleActivator {\r
7 \r
8         private static BundleContext context;\r
9 \r
10         static BundleContext getContext() {\r
11                 return context;\r
12         }\r
13 \r
14         /*\r
15          * (non-Javadoc)\r
16          * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)\r
17          */\r
18         public void start(BundleContext bundleContext) throws Exception {\r
19                 Activator.context = bundleContext;\r
20         }\r
21 \r
22         /*\r
23          * (non-Javadoc)\r
24          * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)\r
25          */\r
26         public void stop(BundleContext bundleContext) throws Exception {\r
27                 Activator.context = null;\r
28         }\r
29 \r
30 }\r