1) Improvements for the XDebug plugin.
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / core / XDebugCorePlugin.java
index bbba27c..10f7582 100644 (file)
@@ -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);
+               return getBreakpointManager().getBreakpoints(IXDebugConstants.ID_PHP_BREAKPOINT_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) ;
@@ -89,14 +79,14 @@ public class XDebugCorePlugin extends Plugin {
                return PLUGIN_ID;
        }
        
-       public void setProxyPort(int port) {
+       /*public void setProxyPort(int port) {
                if(fXDebugProxy!=null) {
                        if (fXDebugProxy.isRunning()) {
                                fXDebugProxy.stop();
                        }
                        fXDebugProxy=null;
                }
-       }
+       }*/
 
        public XDebugProxy getXDebugProxy() {
                if (fXDebugProxy == null) {