Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2008-01-18 14:31:57 +0000
committerDarin Wright2008-01-18 14:31:57 +0000
commit4bcd0882ca27b69dca085faf860f2229cfebe183 (patch)
tree26bc02f126b86752cd0bf57c91c883d6df7e6251 /org.eclipse.debug.ui
parent0532fa85864090ed536181955e6bd5aed3363241 (diff)
downloadeclipse.platform.debug-4bcd0882ca27b69dca085faf860f2229cfebe183.tar.gz
eclipse.platform.debug-4bcd0882ca27b69dca085faf860f2229cfebe183.tar.xz
eclipse.platform.debug-4bcd0882ca27b69dca085faf860f2229cfebe183.zip
Bug 215723 - Attempt to reveal the call stack when stopped
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/TreeModelContentProvider.java9
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/ThreadEventHandler.java2
2 files changed, 7 insertions, 4 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/TreeModelContentProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/TreeModelContentProvider.java
index 057e0ed68..1c15ee46c 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/TreeModelContentProvider.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/TreeModelContentProvider.java
@@ -334,9 +334,12 @@ public class TreeModelContentProvider extends ModelContentProvider implements IL
parentPath = TreePath.EMPTY;
}
treeViewer.replace(parentPath, viewIndex, delta.getElement());
- Widget item = treeViewer.findItem(elementPath);
- if (item instanceof TreeItem) {
- treeViewer.getTree().setTopItem((TreeItem) item);
+ // only move tree based on selection policy
+ if (treeViewer.overrideSelection(treeViewer.getSelection(), new TreeSelection(elementPath))) {
+ Widget item = treeViewer.findItem(elementPath);
+ if (item instanceof TreeItem) {
+ treeViewer.getTree().setTopItem((TreeItem) item);
+ }
}
}
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/ThreadEventHandler.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/ThreadEventHandler.java
index 275a5f962..5395cfbde 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/ThreadEventHandler.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/ThreadEventHandler.java
@@ -114,7 +114,7 @@ public class ThreadEventHandler extends DebugEventHandler {
fireDeltaAndClearTopFrame(thread, IModelDelta.STATE | IModelDelta.CONTENT | IModelDelta.SELECT);
thread = getNextSuspendedThread();
if (thread != null) {
- fireDeltaUpdatingSelectedFrame(thread, IModelDelta.NO_CHANGE, event);
+ fireDeltaUpdatingSelectedFrame(thread, IModelDelta.NO_CHANGE | IModelDelta.REVEAL, event);
}
}

Back to the top