diff options
author | Darin Wright | 2008-05-29 16:32:05 +0000 |
---|---|---|
committer | Darin Wright | 2008-05-29 16:32:05 +0000 |
commit | 6aeeaf636954aa9260f1784a6bff070814a60bc2 (patch) | |
tree | ef442d424b2fee143f469ae40ed74e259e7aa3fa | |
parent | 1f26490180af64b87598c0c0d685d6afcbbd75f6 (diff) | |
download | eclipse.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.java | 8 |
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); } } } |