X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.filesystem.services%2Fsrc%2Forg%2Fsimantics%2Ffilesystem%2Fservices%2Finternal%2FActivator.java;fp=bundles%2Forg.simantics.filesystem.services%2Fsrc%2Forg%2Fsimantics%2Ffilesystem%2Fservices%2Finternal%2FActivator.java;h=e84fdbcab26e49ad95c4a2bd1b947acd78e3390b;hb=26313671f3eb6e4d7f41b7a3a2505ca47d26273c;hp=0000000000000000000000000000000000000000;hpb=3edbf85ff8a7f1bd596857a24b1bdebd66943d6b;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.filesystem.services/src/org/simantics/filesystem/services/internal/Activator.java b/bundles/org.simantics.filesystem.services/src/org/simantics/filesystem/services/internal/Activator.java new file mode 100644 index 000000000..e84fdbcab --- /dev/null +++ b/bundles/org.simantics.filesystem.services/src/org/simantics/filesystem/services/internal/Activator.java @@ -0,0 +1,34 @@ +package org.simantics.filesystem.services.internal; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; + +/** + * @author Tuukka Lehtonen + * @since 1.31.0 + */ +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; + } + +} \ No newline at end of file