X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/core/XDebugCorePlugin.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/core/XDebugCorePlugin.java index bbba27c..f7ca94b 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/core/XDebugCorePlugin.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/core/XDebugCorePlugin.java @@ -2,22 +2,15 @@ package net.sourceforge.phpeclipse.xdebug.core; import net.sourceforge.phpeclipse.xdebug.php.launching.IXDebugConstants; -//import org.eclipse.ui.plugin.AbstractUIPlugin;// *; import org.eclipse.ui.preferences.ScopedPreferenceStore; -//import org.eclipse.core.resources.IWorkspace; -//import org.eclipse.core.resources.ResourcesPlugin; -//import org.eclipse.core.resources.IWorkspace; -//import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Plugin; -//import org.eclipse.core.runtime.Plugin; import org.eclipse.core.runtime.Status; import org.eclipse.core.runtime.preferences.InstanceScope; import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.IBreakpointManager; import org.eclipse.debug.core.model.IBreakpoint; import org.eclipse.jface.preference.IPreferenceStore; -//import org.eclipse.jface.resource.ImageDescriptor; import org.osgi.framework.BundleContext; public class XDebugCorePlugin extends Plugin { @@ -33,6 +26,7 @@ public class XDebugCorePlugin extends Plugin { * The constructor. */ public XDebugCorePlugin() { + super(); plugin = this; } @@ -60,17 +54,13 @@ public class XDebugCorePlugin extends Plugin { return plugin; } - /*public static IWorkspace getWorkspace() { - return ResourcesPlugin.getWorkspace(); - }*/ - public static IBreakpoint[] getBreakpoints() { return getBreakpointManager().getBreakpoints(IXDebugConstants.ID_PHP_DEBUG_MODEL); } - public static /*static*/ IBreakpointManager getBreakpointManager() { + public static IBreakpointManager getBreakpointManager() { return DebugPlugin.getDefault().getBreakpointManager(); - } + } public static void log(int severity, String message) { Status status = new Status(severity, PLUGIN_ID, IStatus.OK, message, null) ;