]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.procore.ui/src/org/simantics/db/procore/ui/internal/Activator.java
Switched from Eclipse 4.13 (2019-09) to 4.14 (2019-12).
[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;
2
3 import org.osgi.framework.BundleActivator;
4 import org.osgi.framework.BundleContext;
5
6 public class Activator implements BundleActivator {
7
8         private static BundleContext context;
9
10         static BundleContext getContext() {
11                 return context;
12         }
13
14         /*
15          * (non-Javadoc)
16          * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
17          */
18         public void start(BundleContext bundleContext) throws Exception {
19                 Activator.context = bundleContext;
20         }
21
22         /*
23          * (non-Javadoc)
24          * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
25          */
26         public void stop(BundleContext bundleContext) throws Exception {
27                 Activator.context = null;
28         }
29
30 }