From: robekras Date: Sun, 26 Dec 2010 15:00:13 +0000 (+0000) Subject: 1) updateThreads is needed. X-Git-Url: http://git.phpeclipse.com 1) updateThreads is needed. --- diff --git a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPDebugTarget.java b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPDebugTarget.java index 41c5a39..00f460a 100644 --- a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPDebugTarget.java +++ b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPDebugTarget.java @@ -106,11 +106,11 @@ public class PHPDebugTarget extends PHPDebugElement implements IPHPDebugTarget, fireChangeEvent(); fireThreadCreateEvent(phpThread); } - -// public void updateThreads(PHPThread phpThread) { -// fireChangeEvent(); -// fireThreadCreateEvent(phpThread); -// } + + public void updateThreads (PHPThread phpThread) { + fireChangeEvent (); + fireThreadCreateEvent (phpThread); + } private void fireChangeEvent() { DebugEvent ev = new DebugEvent(this, DebugEvent.CHANGE); @@ -173,10 +173,10 @@ public class PHPDebugTarget extends PHPDebugElement implements IPHPDebugTarget, public synchronized boolean isTerminated() { return state.isTerminated(); } - + private synchronized void terminateThreads () { int i; - + try { for (i = 0; i < threads.length; i++) { threads[i].terminate ();