]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.procore.ui/src/org/simantics/db/procore/ui/internal/Activator.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.db.procore.ui / src / org / simantics / db / procore / ui / internal / Activator.java
1 package org.simantics.db.procore.ui.internal;\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