X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.district.geotools%2Fsrc%2Forg%2Fsimantics%2Fdistrict%2Fgeotools%2FActivator.java;fp=org.simantics.district.geotools%2Fsrc%2Forg%2Fsimantics%2Fdistrict%2Fgeotools%2FActivator.java;h=eeb057ec9c8a30d82ec19682fdb99a539352bf08;hb=e6378bf9c77ffd2d33d81ab882e6a2243506a0a8;hp=0000000000000000000000000000000000000000;hpb=00e4eca98cef6d77d5023f4b424f9e8da0487463;p=simantics%2Fdistrict.git 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 index 00000000..eeb057ec --- /dev/null +++ b/org.simantics.district.geotools/src/org/simantics/district/geotools/Activator.java @@ -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; + } + +}