aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Tepavich2012-05-30 20:13:20 (EDT)
committerEugene Tarassov2012-06-01 19:47:10 (EDT)
commit42c9fbbe8b819544e1beeaca4581f13545e17370 (patch)
tree8536786c5418a719c2223f12dfd8ae28db8cd6bb
parent8c47dd76a26598d17ec3cee56c53ab732aa97f93 (diff)
downloadorg.eclipse.tcf-42c9fbbe8b819544e1beeaca4581f13545e17370.zip
org.eclipse.tcf-42c9fbbe8b819544e1beeaca4581f13545e17370.tar.gz
org.eclipse.tcf-42c9fbbe8b819544e1beeaca4581f13545e17370.tar.bz2
Bug [381103] Context tree collapsed and no context selected.
-rw-r--r--plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java12
1 files changed, 12 insertions, 0 deletions
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 2a280ee..1909a34 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();
}
}
}