X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=org.simantics.district.region%2Fsrc%2Forg%2Fsimantics%2Fdistrict%2Fregion%2FActivator.java;fp=org.simantics.district.region%2Fsrc%2Forg%2Fsimantics%2Fdistrict%2Fregion%2FActivator.java;h=2ed5d3aad98bcb279b8f6a539f40c1df4639a956;hb=e0993f9acf5c8449ac513d6764e5e81efe77d3fb;hp=0000000000000000000000000000000000000000;hpb=a4105d9cb79a428fbe3a4aa918fc6d1527f1988a;p=simantics%2Fdistrict.git diff --git a/org.simantics.district.region/src/org/simantics/district/region/Activator.java b/org.simantics.district.region/src/org/simantics/district/region/Activator.java new file mode 100644 index 00000000..2ed5d3aa --- /dev/null +++ b/org.simantics.district.region/src/org/simantics/district/region/Activator.java @@ -0,0 +1,30 @@ +package org.simantics.district.region; + +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; + } + +}