Bug 205053 [Navigator] Navigator Filters dialog box is empty
Build ID: M20070921-1145 Steps To Reproduce: 1. New install of the platform opening to a new or existing workpsace. 2. Open the Navigator view. 3. Select Filters... from the Navigator view pull-down menu. The Navigator Filters dialog box does not show any types to filter. More information:
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/FiltersContentProvider.java
}
    /**
     * Reads the filters currently defined for the workbench. 
     */
    private static void readFilters() {
		definedFilters = new ArrayList();
		defaultFilters = new ArrayList();
		IExtensionPoint extension = Platform.getExtensionRegistry()
				.getExtensionPoint(ResourcePatternFilter.FILTERS_TAG);
		if (extension != null) {
			IExtension[] extensions = extension.getExtensions();
			for (int i = 0; i < extensions.length; i++) {
				IConfigurationElement[] configElements = extensions[i]
						.getConfigurationElements();
				for (int j = 0; j < configElements.length; j++) {
					String pattern = configElements[j].getAttribute("pattern");
					if (pattern != null) {
						definedFilters.add(pattern);
					}
					String selected = configElements[j]
							.getAttribute("selected");
					if (selected != null && selected.equalsIgnoreCase("true")) { 
						defaultFilters.add(pattern);
					}
				}
			}
		}
	}
}