-package org.simantics.district.network.ui.internal;\r
-\r
-import org.osgi.framework.BundleActivator;\r
-import org.osgi.framework.BundleContext;\r
-\r
-public class Activator implements BundleActivator {\r
-\r
- @Override\r
- public void start(BundleContext context) throws Exception {\r
-\r
- }\r
-\r
- @Override\r
- public void stop(BundleContext context) throws Exception {\r
-\r
- }\r
-\r
-}\r
+package org.simantics.district.network.ui.internal;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+public class Activator implements BundleActivator {
+
+ public static final String PLUGIN_ID = "org.simantics.district.network.ui";
+ private static BundleContext context;
+
+ @Override
+ public void start(BundleContext context) throws Exception {
+ Activator.context = context;
+ }
+
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ Activator.context = null;
+ }
+
+ public static BundleContext getContext() {
+ return context;
+ }
+
+}