Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2004-11-23 19:51:46 +0000
committerDarin Wright2004-11-23 19:51:46 +0000
commit5895d28f98d08dbd3d082c2622e3f6e82c3a1ae6 (patch)
tree0df15365f9f0d42c96545f5d274f84386647d698
parentb3e473fec62bee7e137267bf78234859c8b76661 (diff)
downloadeclipse.platform.debug-5895d28f98d08dbd3d082c2622e3f6e82c3a1ae6.tar.gz
eclipse.platform.debug-5895d28f98d08dbd3d082c2622e3f6e82c3a1ae6.tar.xz
eclipse.platform.debug-5895d28f98d08dbd3d082c2622e3f6e82c3a1ae6.zip
Bug 79304 - Incorrect stack frame selected
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/RemoteTreeViewer.java23
1 files changed, 14 insertions, 9 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/RemoteTreeViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/RemoteTreeViewer.java
index 6f4041f3e..d9ede8b98 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/RemoteTreeViewer.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/RemoteTreeViewer.java
@@ -301,15 +301,20 @@ public class RemoteTreeViewer extends TreeViewer {
- public synchronized void prune(Object parent, int offset) {
- Widget widget = findItem(parent);
- if (widget != null) {
- Item[] currentChildren = getChildren(widget);
- for (int i = offset; i < currentChildren.length; i++) {
- disassociate(currentChildren[i]);
- currentChildren[i].dispose();
- }
- }
+ public synchronized void prune(final Object parent, final int offset) {
+ preservingSelection(new Runnable() {
+ public void run() {
+ Widget widget = findItem(parent);
+ if (widget != null) {
+ Item[] currentChildren = getChildren(widget);
+ for (int i = offset; i < currentChildren.length; i++) {
+ disassociate(currentChildren[i]);
+ currentChildren[i].dispose();
+ }
+ }
+ }
+ });
+
}
public synchronized void replace(final Object parent, final Object[] children, final int offset) {

Back to the top