1 package net.sourceforge.phpdt.internal.launching;
3 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
4 import org.eclipse.core.resources.IWorkspace;
5 import org.eclipse.core.runtime.IPluginDescriptor;
6 import org.eclipse.core.runtime.IStatus;
7 import org.eclipse.core.runtime.Plugin;
8 import org.eclipse.core.runtime.Status;
10 public class PHPLaunchingPlugin extends Plugin {
11 public static final String PLUGIN_ID = "net.sourceforge.phpeclipse.launching"; //$NON-NLS-1$
13 protected static PHPLaunchingPlugin plugin;
15 public PHPLaunchingPlugin(IPluginDescriptor descriptor) {
20 public static PHPLaunchingPlugin getDefault() {
24 public static IWorkspace getWorkspace() {
25 return PHPeclipsePlugin.getWorkspace();
28 public static void log(IStatus status) {
29 getDefault().getLog().log(status);
32 public static void log(Throwable e) {
33 log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.ERROR, PHPLaunchingMessages.getString("PHPLaunchingPlugin.internalErrorOccurred"), e)); //$NON-NLS-1$