diff options
author | Darin Wright | 2008-05-06 18:49:00 +0000 |
---|---|---|
committer | Darin Wright | 2008-05-06 18:49:00 +0000 |
commit | 1bf340fc50e37ca22e8da906a596da23c9c9b80f (patch) | |
tree | 0eecc5e71a38b0e0143d1c2acd147b78d205552b /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui | |
parent | 949f7e05f10726bed2a785cb9be860fc22f0e37c (diff) | |
download | eclipse.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.java | 9 |
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++; + } + } } } } |