Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2011-03-21 21:35:54 +0000
committerPawel Piech2011-03-21 21:35:54 +0000
commit34d10e604d1e4486e2f677fc3827134ccf9fdfa3 (patch)
tree49c8393da6aa352729580d4c7763db6e49b87394
parentd2ce1e70809f6eae3e6cc8624106fcc4cbf91b29 (diff)
downloadeclipse.platform.debug-34d10e604d1e4486e2f677fc3827134ccf9fdfa3.tar.gz
eclipse.platform.debug-34d10e604d1e4486e2f677fc3827134ccf9fdfa3.tar.xz
eclipse.platform.debug-34d10e604d1e4486e2f677fc3827134ccf9fdfa3.zip
Bug 339920 - Show References tree expansion for Watch Expressions View not refreshed correctly when switching between stackframes
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java
index 707e274cb..e542b826b 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java
@@ -2495,16 +2495,18 @@ public class InternalTreeModelViewer extends TreeViewer
protected void handleTreeExpand(TreeEvent event) {
super.handleTreeExpand(event);
IContentProvider contentProvider = getContentProvider();
- if (contentProvider instanceof TreeModelContentProvider) {
+ if (contentProvider instanceof TreeModelContentProvider && event.item.getData() != null) {
TreePath path = getTreePathFromItem((TreeItem)event.item);
((TreeModelContentProvider) contentProvider).cancelRestore(path, IModelDelta.COLLAPSE);
+ } else {
+ System.out.println("dude");
}
}
protected void handleTreeCollapse(TreeEvent event) {
super.handleTreeCollapse(event);
IContentProvider contentProvider = getContentProvider();
- if (contentProvider instanceof TreeModelContentProvider) {
+ if (contentProvider instanceof TreeModelContentProvider && event.item.getData() != null) {
TreePath path = getTreePathFromItem((TreeItem)event.item);
((TreeModelContentProvider) contentProvider).cancelRestore(path, IModelDelta.EXPAND);
}

Back to the top