]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.backup/src/org/simantics/backup/Activator.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.backup / src / org / simantics / backup / Activator.java
1 package org.simantics.backup;
2
3 import org.osgi.framework.BundleActivator;
4 import org.osgi.framework.BundleContext;
5
6 public class Activator implements BundleActivator {
7
8         public static final String BUNDLE_ID = "org.simantics.backup"; //$NON-NLS-1$
9
10         private static BundleContext context;
11
12         static BundleContext getContext() {
13                 return context;
14         }
15
16         /*
17          * (non-Javadoc)
18          * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
19          */
20         public void start(BundleContext bundleContext) throws Exception {
21                 Activator.context = bundleContext;
22         }
23
24         /*
25          * (non-Javadoc)
26          * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
27          */
28         public void stop(BundleContext bundleContext) throws Exception {
29                 Activator.context = null;
30         }
31
32 }