1 package net.sourceforge.phpdt.internal.launching;
3 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
5 import org.eclipse.core.resources.IWorkspace;
6 import org.eclipse.core.runtime.IPluginDescriptor;
7 import org.eclipse.core.runtime.IStatus;
8 import org.eclipse.core.runtime.Status;
9 import org.eclipse.ui.plugin.AbstractUIPlugin;
10 import org.osgi.framework.BundleContext;
12 public class PHPLaunchingPlugin extends AbstractUIPlugin {
13 public static final String PLUGIN_ID = "net.sourceforge.phpeclipse.launching"; //$NON-NLS-1$
15 protected static PHPLaunchingPlugin plugin;
17 public PHPLaunchingPlugin(IPluginDescriptor descriptor) {
22 public static PHPLaunchingPlugin getDefault() {
26 public static IWorkspace getWorkspace() {
27 return PHPeclipsePlugin.getWorkspace();
30 public static void log(IStatus status) {
31 getDefault().getLog().log(status);
34 public static void log(Throwable e) {
35 log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.ERROR, PHPLaunchingMessages.getString("PHPLaunchingPlugin.internalErrorOccurred"), e)); //$NON-NLS-1$
38 * This method is called upon plug-in activation
40 public void start(BundleContext context) throws Exception {
45 * This method is called when the plug-in is stopped
47 public void stop(BundleContext context) throws Exception {