Bug 291755 [Filters] Filters implementation and API cleanup
This bug is raised to track reviewing and cleanup of filters API and implementation.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceFilterGroup.java
if (selection == 1)
				filter.setType(type | IResourceFilter.FOLDERS);
			if (selection == 2)
				filter.setType(type | IResourceFilter.FILES
						| IResourceFilter.FOLDERS);
		}
		if (property.equals(FilterTypeUtil.INHERITABLE)) {
			int type = filter.getType() & ~IResourceFilter.INHERITABLE;
			if (((Boolean) value).booleanValue())
				filter.setType(type | IResourceFilter.INHERITABLE);
			else
				filter.setType(type);
		}
		if (property.equals(FilterTypeUtil.ARGUMENTS))
			filter.setArguments((String) value);
	}
	static IFilterDescriptor getDescriptor(String id) {
		IFilterDescriptor[] descriptors = ResourcesPlugin.getWorkspace()
				.getFilterDescriptors();
		for (int i = 0; i < descriptors.length; i++) {
			if (descriptors[i].getId().equals(id))
				return descriptors[i];
		}
		return null;
	}
	static int getDescriptorIndex(String id) {
		IFilterDescriptor descriptors[] = ResourcesPlugin.getWorkspace()
				.getFilterDescriptors();
		for (int i = 0; i < descriptors.length; i++) {
			if (descriptors[i].getId().equals(id))