fix wrong DebugEvent.TERMINATE fire.
authorincastrix <incastrix>
Wed, 19 Nov 2008 22:55:45 +0000 (22:55 +0000)
committerincastrix <incastrix>
Wed, 19 Nov 2008 22:55:45 +0000 (22:55 +0000)
net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugTarget.java
net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugThread.java

index c8de10f..0c9f1d3 100644 (file)
@@ -176,7 +176,7 @@ public class XDebugTarget extends XDebugElement implements IDebugTarget, IDebugE
                        fSuspended = false;
                        
                        XDebugCorePlugin.getBreakpointManager().removeBreakpointListener(this);
-                       fThread.fireTerminateEvent();
+                       fireEvent(new DebugEvent(this, DebugEvent.TERMINATE));
                        DebugPlugin.getDefault().removeDebugEventListener(this);
                }
        }
index 054ce26..463ae99 100644 (file)
@@ -324,11 +324,4 @@ public class XDebugThread extends XDebugElement implements IThread, IDebugEventS
        public void fireSuspendEvent(int detail) {
                fireEvent(new DebugEvent(this, DebugEvent.SUSPEND, detail));
        }
-       
-       /**
-        * Fires a <code>TERMINATE</code> event for this element.
-        */
-       protected void fireTerminateEvent() {
-               fireEvent(new DebugEvent(this, DebugEvent.TERMINATE));
-       }       
 }
\ No newline at end of file