X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.msvc.runtime.x86_64%2Forg.simantics.msvc.runtime%2Fsrc%2Forg%2Fsimantics%2Fmsvc%2Fruntime%2FActivator.java;fp=bundles%2Forg.simantics.msvc.runtime.x86_64%2Forg.simantics.msvc.runtime%2Fsrc%2Forg%2Fsimantics%2Fmsvc%2Fruntime%2FActivator.java;h=b956a448e937b90f0513f35bf641d10e68820643;hp=0000000000000000000000000000000000000000;hb=68e5274fbda4c51b920db69b2e87d5646c446ce4;hpb=d09be9d2b8bf2e982ab7cf5760d39014e7ca4fa1 diff --git a/bundles/org.simantics.msvc.runtime.x86_64/org.simantics.msvc.runtime/src/org/simantics/msvc/runtime/Activator.java b/bundles/org.simantics.msvc.runtime.x86_64/org.simantics.msvc.runtime/src/org/simantics/msvc/runtime/Activator.java new file mode 100644 index 000000000..b956a448e --- /dev/null +++ b/bundles/org.simantics.msvc.runtime.x86_64/org.simantics.msvc.runtime/src/org/simantics/msvc/runtime/Activator.java @@ -0,0 +1,31 @@ +package org.simantics.msvc.runtime; + +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; + Runtimes.initialize(Runtimes.VC_2010); + } + + /* + * (non-Javadoc) + * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext) + */ + public void stop(BundleContext bundleContext) throws Exception { + Activator.context = null; + } + +}