aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2012-08-01 23:24:12 (EDT)
committerzzhongwei2012-08-01 23:24:12 (EDT)
commit9c309e333900fb835ff50f897775654aef0937e3 (patch)
tree17b5a563c55d82339fde945d19fc087943d14a26
parentbd444c87669c1a4f22a86d631eae47df19ea956c (diff)
downloadorg.eclipse.pdt-9c309e333900fb835ff50f897775654aef0937e3.zip
org.eclipse.pdt-9c309e333900fb835ff50f897775654aef0937e3.tar.gz
org.eclipse.pdt-9c309e333900fb835ff50f897775654aef0937e3.tar.bz2
ZSTD-1861 [Regression] Debug Output does not refresh depending on the
focus
-rw-r--r--plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/views/DebugOutputView.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/views/DebugOutputView.java b/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/views/DebugOutputView.java
index a6c0ea7..76dddb2 100644
--- a/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/views/DebugOutputView.java
+++ b/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/views/DebugOutputView.java
@@ -30,6 +30,7 @@ import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.php.internal.debug.core.model.DebugOutput;
import org.eclipse.php.internal.debug.core.model.IPHPDebugTarget;
+import org.eclipse.php.internal.debug.core.zend.model.PHPThread;
import org.eclipse.php.internal.ui.IPHPHelpContextIds;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
@@ -94,11 +95,18 @@ public class DebugOutputView extends AbstractDebugView implements
for (int i = 0; i < size; i++) {
Object obj = events[i].getSource();
- if (!(obj instanceof IPHPDebugTarget))
+ if (!(obj instanceof IPHPDebugTarget || obj instanceof PHPThread))
continue;
- if (events[i].getKind() == DebugEvent.TERMINATE) {
- target = (IPHPDebugTarget) obj;
+ if (events[i].getKind() == DebugEvent.TERMINATE
+ || events[i].getKind() == DebugEvent.SUSPEND) {
+ if (obj instanceof IPHPDebugTarget) {
+
+ target = (IPHPDebugTarget) obj;
+ } else {
+ target = (IPHPDebugTarget) ((PHPThread) obj)
+ .getDebugTarget();
+ }
Job job = new UIJob("debug output") {
public IStatus runInUIThread(
IProgressMonitor monitor) {