X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.logging.ui%2Fsrc%2Forg%2Fsimantics%2Flogging%2Fui%2FActivator.java;fp=bundles%2Forg.simantics.logging.ui%2Fsrc%2Forg%2Fsimantics%2Flogging%2Fui%2FActivator.java;h=942a88ba2c030c65399d088a8188047bb6dc2b18;hp=0000000000000000000000000000000000000000;hb=7d5a5691780ed8373e77641b4a08f18cba0b9fab;hpb=33b349001037197a526a49e5820f0317dc74d934 diff --git a/bundles/org.simantics.logging.ui/src/org/simantics/logging/ui/Activator.java b/bundles/org.simantics.logging.ui/src/org/simantics/logging/ui/Activator.java new file mode 100644 index 000000000..942a88ba2 --- /dev/null +++ b/bundles/org.simantics.logging.ui/src/org/simantics/logging/ui/Activator.java @@ -0,0 +1,30 @@ +package org.simantics.logging.ui; + +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; + } + +}