]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.maps.server/src/org/simantics/district/maps/server/Activator.java
Some cleaning and fixing of district functionalities
[simantics/district.git] / org.simantics.maps.server / src / org / simantics / district / maps / server / Activator.java
index a09545fbf6034587aa74e90f17e7c382e886df9d..65227c669af3fe3ce0d26641a8d1ffdbae6f0ce0 100644 (file)
@@ -15,6 +15,7 @@ public class Activator implements BundleActivator {
 
     public static final String PLUGIN_ID = "org.simantics.maps.server";
     private static BundleContext context;
+    private static Activator defaultt;
 
     static BundleContext getContext() {
         return context;
@@ -28,6 +29,7 @@ public class Activator implements BundleActivator {
      */
     public void start(BundleContext bundleContext) throws Exception {
         Activator.context = bundleContext;
+        Activator.defaultt = this;
     }
 
     /*
@@ -38,6 +40,7 @@ public class Activator implements BundleActivator {
      */
     public void stop(BundleContext bundleContext) throws Exception {
         Activator.context = null;
+        Activator.defaultt = null;
     }
 
     public static Path getNodeJSRoot() throws IOException, URISyntaxException {
@@ -55,4 +58,8 @@ public class Activator implements BundleActivator {
         return Paths.get(encodedUri);
     }
 
+    public static Activator getDefault() {
+        return defaultt;
+    }
+
 }