Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2008-05-06 18:49:00 +0000
committerDarin Wright2008-05-06 18:49:00 +0000
commit1bf340fc50e37ca22e8da906a596da23c9c9b80f (patch)
tree0eecc5e71a38b0e0143d1c2acd147b78d205552b /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui
parent949f7e05f10726bed2a785cb9be860fc22f0e37c (diff)
downloadeclipse.platform.debug-1bf340fc50e37ca22e8da906a596da23c9c9b80f.tar.gz
eclipse.platform.debug-1bf340fc50e37ca22e8da906a596da23c9c9b80f.tar.xz
eclipse.platform.debug-1bf340fc50e37ca22e8da906a596da23c9c9b80f.zip
Bug 229362 - filter count on LCD considers PRIVATE configs in total
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationViewer.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationViewer.java
index b0cb882fa..8d24eb786 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationViewer.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationViewer.java
@@ -177,9 +177,16 @@ public class LaunchConfigurationViewer extends TreeViewer {
LaunchConfigurationTreeContentProvider cp = (LaunchConfigurationTreeContentProvider) getContentProvider();
Object[] types = cp.getElements(null);
LaunchGroupFilter filter = new LaunchGroupFilter(((LaunchConfigurationsDialog)LaunchConfigurationsDialog.getCurrentlyVisibleLaunchConfigurationDialog()).getLaunchGroup());
+ ILaunchConfiguration[] configs = null;
for(int i = 0; i < types.length; i++) {
if(filter.select(this, types[i], null)) {
- fTotalCount += cp.getChildren(types[i]).length + 1; //+1 for the type
+ fTotalCount++;
+ configs = (ILaunchConfiguration[]) cp.getChildren(types[i]);
+ for(int j = 0; j < configs.length; j++) {
+ if(LaunchConfigurationManager.isVisible(configs[j])) {
+ fTotalCount++;
+ }
+ }
}
}
}

Back to the top