From 4d044c4adefdd16fe89b3283ee070c725385607d Mon Sep 17 00:00:00 2001 From: Eugene Tarassov Date: Thu, 11 Jun 2015 10:52:07 -0700 Subject: TCF Debugger: fixed: breakpoint scope dialog cannot handle debug context which is nether a container nor a thread --- .../tcf/internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 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 aeda007aa..0f5cd3f82 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 @@ -150,11 +150,9 @@ public class TCFThreadFilterEditor { * default. When a container is unchecked, uncheck all its threads. */ private void checkContext(Context ctx, boolean checked) { - if (ctx.fIsContainer) { - Object[] threads = fContentProvider.getChildren(ctx); - for (int i = 0; i < threads.length; i++) { - checkContext((Context) threads[i], checked); - } + Object[] threads = fContentProvider.getChildren(ctx); + for (int i = 0; i < threads.length; i++) { + checkContext((Context) threads[i], checked); } checkThread(ctx, checked); } @@ -237,7 +235,7 @@ public class TCFThreadFilterEditor { { filteredList.add(obj); fFilteredContexts.add(obj); - } else if (context.fIsContainer) { + } else { Object[] childArray = getChildren(obj); if (childArray != null && childArray.length != 0) { filteredList.add(obj); -- cgit v1.2.3