blob: b2cdf3612ba14c251c0a1f157ee75c76318292ff [file] [log] [blame]
package org.eclipse.e4.ui.examples.legacy.workbench;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class Activator implements BundleActivator {
// The bundle id
public static final String BUNDLE_ID = "org.eclipse.e4.ui.examples.legacy.workbench"; //$NON-NLS-1$
// The shared instance
private static BundleContext context;
/**
* The constructor
*/
public Activator() {
}
/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext aContext) throws Exception {
context = aContext;
}
/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext aContext) throws Exception {
context = null;
}
/**
* Returns the shared instance
*
* @return the shared instance
*/
public static BundleContext getContext() {
return context;
}
}