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/misc/StringMatcherFilter.java
/**
	 * Creates a new factory for this filter type.
	 */
	public StringMatcherFilter() {
	}
	class FilterType implements IFileInfoFilter {
		StringMatcher matcher;
		/**
		 * @param arguments
		 */
		public FilterType(String arguments) {
			matcher = new StringMatcher(arguments, true, false);
		}
		/*
		 * (non-Javadoc)
		 * 
		 * @seeorg.eclipse.core.resources.IFilterType#matches(org.eclipse.core.
		 * filesystem.IFileInfo)
		 */
		public boolean matches(IFileInfo fileInfo) {
			return matcher.match(fileInfo.getName());
		}
	}
	public IFileInfoFilter instantiate(IProject project, String arguments) {
		return new FilterType(arguments);
	}
}