1 package net.sourceforge.phpdt.internal.debug.core;
3 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
4 import org.eclipse.core.resources.IWorkspace;
5 import org.eclipse.core.runtime.IStatus;
6 import org.eclipse.core.runtime.Plugin;
7 import org.eclipse.core.runtime.Status;
8 //import org.eclipse.core.runtime.*;
9 import org.osgi.framework.BundleContext;
12 * The main plugin class to be used in the desktop.
14 public class PHPDebugCorePlugin extends Plugin {
15 public static final String PLUGIN_ID = "net.sourceforge.phpeclipse.debug.core"; //$NON-NLS-1$
16 // The shared instance.
17 protected static PHPDebugCorePlugin plugin;
22 public PHPDebugCorePlugin() {
28 * Returns the shared instance.
30 public static PHPDebugCorePlugin getDefault() {
35 * Returns the workspace instance.
37 public static IWorkspace getWorkspace() {
38 return PHPeclipsePlugin.getWorkspace();
41 public static void log(int severity, String message) {
42 Status status = new Status(severity, PLUGIN_ID, IStatus.OK, message, null) ;
43 PHPDebugCorePlugin.log(status) ;
46 public static void log(IStatus status) {
47 getDefault().getLog().log(status);
50 public static void log(Throwable e) {
51 log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.ERROR, "PHPLaunchingPlugin.internalErrorOccurred", e)); //$NON-NLS-1$
55 * Convenience method which returns the unique identifier of this plugin.
57 public static String getUniqueIdentifier() {
62 * @see Plugin#shutdown()
64 /* public void shutdown() throws CoreException {
70 * This method is called upon plug-in activation
72 public void start(BundleContext context) throws Exception {
77 * This method is called when the plug-in is stopped
79 public void stop(BundleContext context) throws Exception {