From 42c9fbbe8b819544e1beeaca4581f13545e17370 Mon Sep 17 00:00:00 2001 From: Scott Tepavich Date: Wed, 30 May 2012 17:13:20 -0700 Subject: Bug [381103] Context tree collapsed and no context selected. --- .../internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java index 2a280ee7f..1909a3485 100644 --- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java +++ b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java @@ -211,6 +211,17 @@ public class TCFThreadFilterEditor { break; } } + // Some queries eliminate parent elements for grandchild matches. + if (filteredList.size() == 0) { + for (Object check_obj : resultArray) { + if ( check_obj instanceof Context && ((Context)obj).fIsContainer) { + Object[] childArray = getChildren(check_obj); + if (childArray != null) { + filteredList.addAll(Arrays.asList(childArray)); + } + } + } + } } } if (filterExpr != null && filterExpr.length() != 0) { @@ -457,6 +468,7 @@ public class TCFThreadFilterEditor { scopeExprCombo.getParent().layout(); if (fThreadViewer != null) { fThreadViewer.refresh(); + setInitialCheckedState(); } } } -- cgit v1.2.3