adding plug-in provider xdebug.core and xdebug.ui to fix ticket #640
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / core / XDebugProxy.java
index d572ba2..93294b2 100644 (file)
@@ -16,7 +16,7 @@ import org.eclipse.core.runtime.IStatus;
 import org.eclipse.core.runtime.Platform;
 import org.eclipse.core.runtime.Status;
 import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.debug.core.DebugException;
+//import org.eclipse.debug.core.DebugException;
 import org.eclipse.debug.core.IDebugEventFilter;
 import org.eclipse.debug.core.IDebugEventSetListener;
 
@@ -28,7 +28,7 @@ public class XDebugProxy {
        protected String fInitString;
        protected String fIdeKey;
 
-       protected AbstractDebugConnection fConnection;
+       /*protected*/ private /*AbstractDebugConnection*/ XDebugConnection fConnection;
 
        class ProxyListenerJob extends Job {
                public ProxyListenerJob() {
@@ -69,7 +69,7 @@ public class XDebugProxy {
                                                // TODO Auto-generated catch block
                                                e.printStackTrace();
                                        }
-                                       fConnection=(AbstractDebugConnection) new XDebugConnection(socket,reader,writer);       
+                                       fConnection=/*(AbstractDebugConnection)*/ new XDebugConnection(socket,reader,writer);   
                                        if (fConnection.isInitialized()) {
                                                fIdeKey=fConnection.getSessionID();
                                                XDebugCorePlugin.log(IStatus.INFO,"<init idekey \""+fIdeKey+"\">");
@@ -114,13 +114,13 @@ public class XDebugProxy {
                 */
                public void dispatch() {
                        fListener = (IProxyEventListener) getEventListener(fIdeKey);
-                       if (fListener==null) {     // no listener is found so start the script
-                               try {
+                       if (fListener == null) {     // no listener is found so start the script
+                               //try {
                                        fConnection.run();
-                               } catch (DebugException e) {
+                               /*} catch (DebugException e) {
                                        // TODO Auto-generated catch block
                                        e.printStackTrace();
-                               }
+                               }*/
                        } else
                                Platform.run(this);
                        fListener = null;