Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2008-05-29 16:32:05 +0000
committerDarin Wright2008-05-29 16:32:05 +0000
commit6aeeaf636954aa9260f1784a6bff070814a60bc2 (patch)
treeef442d424b2fee143f469ae40ed74e259e7aa3fa
parent1f26490180af64b87598c0c0d685d6afcbbd75f6 (diff)
downloadeclipse.platform.debug-6aeeaf636954aa9260f1784a6bff070814a60bc2.tar.gz
eclipse.platform.debug-6aeeaf636954aa9260f1784a6bff070814a60bc2.tar.xz
eclipse.platform.debug-6aeeaf636954aa9260f1784a6bff070814a60bc2.zip
Bug 233730 - Run control actions not refreshed after event with both CONTENT and STATE flags for parent context issued.
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java
index 83a664fa4..359140044 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java
@@ -226,10 +226,12 @@ public class LaunchView extends AbstractDebugView implements ISelectionChangedLi
if (ss.size() == 1) {
TreePath current = ss.getPaths()[0];
if (current.startsWith(element, null)) {
- if (type == DebugContextEvent.STATE || current.getSegmentCount() == element.getSegmentCount()) {
- // update when a parent of the selected child changes state OR when
- // the change is for the current context
+ if (current.getSegmentCount() == element.getSegmentCount()) {
event = new DebugContextEvent(this, fContext, type);
+ } else {
+ // if parent of the currently selected element
+ // changes, issue event to update STATE only
+ event = new DebugContextEvent(this, fContext, DebugContextEvent.STATE);
}
}
}

Back to the top