Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2008-02-18 16:10:36 -0500
committerDarin Wright2008-02-18 16:10:36 -0500
commit0ba6e05fa03edaeeea6150162f7345c10a16e903 (patch)
treec68fcdf2979bcdbef1b33e11009922d73f928306
parentb078290a536598c784603727e668369b6a4873e5 (diff)
downloadeclipse.platform.debug-0ba6e05fa03edaeeea6150162f7345c10a16e903.tar.gz
eclipse.platform.debug-0ba6e05fa03edaeeea6150162f7345c10a16e903.tar.xz
eclipse.platform.debug-0ba6e05fa03edaeeea6150162f7345c10a16e903.zip
fix for test for delta for root element
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/TreeModelContentProvider.java2
1 files changed, 1 insertions, 1 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 1c15ee46c..086016cc5 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
@@ -114,7 +114,7 @@ public class TreeModelContentProvider extends ModelContentProvider implements IL
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.viewers.ModelContentProvider#handleContent(org.eclipse.debug.internal.ui.viewers.provisional.IModelDelta)
*/
protected void handleContent(IModelDelta delta) {
- if (delta.getChildCount() == 0) {
+ if (delta.getParentDelta() == null && delta.getChildCount() == 0) {
// if the delta is for the root, ensure the root still matches viewer input
if (!delta.getElement().equals(getViewer().getInput())) {
return;

Back to the top