X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.maps.server%2Fsrc%2Forg%2Fsimantics%2Fdistrict%2Fmaps%2Fserver%2FActivator.java;h=65227c669af3fe3ce0d26641a8d1ffdbae6f0ce0;hb=00e4eca98cef6d77d5023f4b424f9e8da0487463;hp=a09545fbf6034587aa74e90f17e7c382e886df9d;hpb=02ecca5e61d2eb17de40cc058be678b414aaad00;p=simantics%2Fdistrict.git diff --git a/org.simantics.maps.server/src/org/simantics/district/maps/server/Activator.java b/org.simantics.maps.server/src/org/simantics/district/maps/server/Activator.java index a09545fb..65227c66 100644 --- a/org.simantics.maps.server/src/org/simantics/district/maps/server/Activator.java +++ b/org.simantics.maps.server/src/org/simantics/district/maps/server/Activator.java @@ -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; + } + }