]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d.product/src/org/simantics/plant3d/product/Activator.java
Publish Plant3D feature
[simantics/3d.git] / org.simantics.plant3d.product / src / org / simantics / plant3d / product / Activator.java
diff --git a/org.simantics.plant3d.product/src/org/simantics/plant3d/product/Activator.java b/org.simantics.plant3d.product/src/org/simantics/plant3d/product/Activator.java
new file mode 100644 (file)
index 0000000..87c1fac
--- /dev/null
@@ -0,0 +1,30 @@
+package org.simantics.plant3d.product;
+
+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;
+       }
+
+}