blob: 73b5d2ee19c1892a0a023042bdf01dc88e48fc42 [file] [log] [blame]
package org.eclipse.egf.application.internal.activator;
import org.eclipse.egf.common.activator.EGFAbstractPlugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class EGFApplicationPlugin extends EGFAbstractPlugin {
// The shared instance
private static EGFApplicationPlugin _plugin;
/**
* (non-Javadoc)
*
* @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
*/
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
_plugin = this;
}
/**
* (non-Javadoc)
*
* @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
*/
@Override
public void stop(BundleContext context) throws Exception {
_plugin = null;
super.stop(context);
}
/**
* Returns the shared instance
*
* @return the shared instance
*/
public static EGFApplicationPlugin getDefault() {
return _plugin;
}
}