package org.simantics.db.internal; import org.eclipse.core.runtime.Plugin; import org.osgi.framework.BundleContext; public class Activator extends Plugin { // The plug-in ID public static final String PLUGIN_ID = "org.simantics.db"; private static Activator activator; private static BundleContext context; @Override public void start(BundleContext context) throws Exception { activator = this; Activator.context = context; super.start(context); } @Override public void stop(BundleContext context) throws Exception { super.stop(context); Activator.context = null; activator = null; } public static Activator getDefault() { return activator; } public static BundleContext getContext() { return context; } }