]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.geotools/src/org/simantics/district/geotools/Activator.java
Adding org.simantics.district.geotools plugin
[simantics/district.git] / org.simantics.district.geotools / src / org / simantics / district / geotools / Activator.java
diff --git a/org.simantics.district.geotools/src/org/simantics/district/geotools/Activator.java b/org.simantics.district.geotools/src/org/simantics/district/geotools/Activator.java
new file mode 100644 (file)
index 0000000..eeb057e
--- /dev/null
@@ -0,0 +1,30 @@
+package org.simantics.district.geotools;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+public class Activator implements BundleActivator {
+
+       private static BundleContext context;
+
+       static BundleContext getContext() {
+               return context;
+       }
+
+       /*
+        * (non-Javadoc)
+        * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+        */
+       public void start(BundleContext bundleContext) throws Exception {
+               Activator.context = bundleContext;
+       }
+
+       /*
+        * (non-Javadoc)
+        * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+        */
+       public void stop(BundleContext bundleContext) throws Exception {
+               Activator.context = null;
+       }
+
+}