X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.help.base%2Fsrc%2Forg%2Fsimantics%2Fhelp%2Fbase%2Finternal%2FActivator.java;fp=bundles%2Forg.simantics.help.base%2Fsrc%2Forg%2Fsimantics%2Fhelp%2Fbase%2Finternal%2FActivator.java;h=a53e7ce0cf12b15606a195c3c40a185b9e7fd2f0;hb=6a4a43b278d6819c660182eb4954524d1757e077;hp=0000000000000000000000000000000000000000;hpb=4e40f9793cc18f08f1fa6c96d9bb4f42408997b4;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.help.base/src/org/simantics/help/base/internal/Activator.java b/bundles/org.simantics.help.base/src/org/simantics/help/base/internal/Activator.java new file mode 100644 index 000000000..a53e7ce0c --- /dev/null +++ b/bundles/org.simantics.help.base/src/org/simantics/help/base/internal/Activator.java @@ -0,0 +1,30 @@ +package org.simantics.help.base.internal; + +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; + } + +}