X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/PHPDebugCorePlugin.java b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/PHPDebugCorePlugin.java index 0e6f79f..137b708 100644 --- a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/PHPDebugCorePlugin.java +++ b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/PHPDebugCorePlugin.java @@ -2,11 +2,10 @@ package net.sourceforge.phpdt.internal.debug.core; import net.sourceforge.phpeclipse.PHPeclipsePlugin; import org.eclipse.core.resources.IWorkspace; -import org.eclipse.core.runtime.IPluginDescriptor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Plugin; import org.eclipse.core.runtime.Status; -import org.eclipse.core.runtime.*; +//import org.eclipse.core.runtime.*; import org.osgi.framework.BundleContext; /** @@ -20,8 +19,8 @@ public class PHPDebugCorePlugin extends Plugin { /** * The constructor. */ - public PHPDebugCorePlugin(IPluginDescriptor descriptor) { - super(descriptor); + public PHPDebugCorePlugin() { + super(); plugin = this; } @@ -55,23 +54,18 @@ public class PHPDebugCorePlugin extends Plugin { /** * Convenience method which returns the unique identifier of this plugin. */ -// public static String getUniqueIdentifier() { -// if (getDefault() == null) { -// // If the default instance is not yet initialized, -// // return a static identifier. This identifier must -// // match the plugin id defined in plugin.xml -// return PLUGIN_ID; -// } -// return getDefault().getDescriptor().getUniqueIdentifier(); -// } + public static String getUniqueIdentifier() { + return PLUGIN_ID; + } /** * @see Plugin#shutdown() */ - public void shutdown() throws CoreException { +/* public void shutdown() throws CoreException { plugin = null; super.shutdown(); } +*/ /** * This method is called upon plug-in activation */ @@ -83,6 +77,7 @@ public class PHPDebugCorePlugin extends Plugin { * This method is called when the plug-in is stopped */ public void stop(BundleContext context) throws Exception { + plugin=null; super.stop(context); } }