| package org.eclipse.e4.internal.tools; |
| |
| import org.eclipse.ui.plugin.AbstractUIPlugin; |
| import org.osgi.framework.BundleContext; |
| |
| public class ToolsPlugin extends AbstractUIPlugin { |
| // The plug-in ID |
| public static final String PLUGIN_ID = "org.eclipse.e4.tools"; //$NON-NLS-1$ |
| |
| private static ToolsPlugin plugin; |
| |
| @Override |
| public void start(BundleContext context) throws Exception { |
| super.start(context); |
| plugin = this; |
| } |
| |
| @Override |
| public void stop(BundleContext context) throws Exception { |
| plugin = null; |
| super.stop(context); |
| } |
| |
| /** |
| * Returns the shared instance |
| * |
| * @return the shared instance |
| */ |
| public static ToolsPlugin getDefault() { |
| return plugin; |
| } |
| |
| } |