package net.certware.argument.sfp.navigator; import org.eclipse.ui.plugin.AbstractUIPlugin; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; /** * CertWareUIPlugin for navigator plugin. * @author mrb * @since 1.0 */ public class Activator extends AbstractUIPlugin implements BundleActivator { private static BundleContext context; public static String PLUGIN_ID = "net.certware.argument.sfp.navigator"; //$NON-NLS-1$ 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; } }