blob: 8df3d3065ad2c9028eaec0f985aea734bf65fe63 [file] [log] [blame]
package org.eclipse.emf.parsley.tests.views;
import org.osgi.framework.BundleContext;
import org.eclipse.emf.parsley.EmfParsleyGuiceModule;
import org.eclipse.emf.parsley.ui.EmfParsleyAbstractActivator;
/**
* The activator class controls the plug-in life cycle
*/
public class ViewsActivator extends EmfParsleyAbstractActivator {
// The plug-in ID
public static final String PLUGIN_ID = "org.eclipse.emf.parsley.tests.views"; //$NON-NLS-1$
// The shared instance
private static ViewsActivator plugin;
public ViewsActivator() {
}
/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}
/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
/**
* Returns the shared instance
*
* @return the shared instance
*/
public static ViewsActivator getDefault() {
return plugin;
}
/**
* Creates the EmfParsleyGuiceModule for this this plugin
*
* @return the EmfParsleyGuiceModule for this this plugin
*/
public EmfParsleyGuiceModule createModule() {
return new ViewsGuiceModule(getDefault());
}
}