Platform Plug-in Developer Guide > Programmer's Guide > Resources overview

Resource Filters

Resource filters allow the user to configure which files and folders are included automatically in a project resource hierarchy when refresh is performed.

By adding resource filters to a project or folder, the user can systematically prevent some file system entries to be displayed in the resource tree.

Resource filters can be created using the IContainer.createFilter method.

The FileInfoMatcherDescription object has to be initialized with the ID of a filterMatchers extension point. The org.eclipse.core.resources plugin specifiy one default filter matcher, of ID org.eclipse.core.resources.regexFilterMatcher, which accepts regular expressions Strings as argument. Other plugins distributed with the workbench (such as the org.eclipse.ui.ide plugin) define other reusable filter matchers.

Filter matchers are extensible through the org.eclipse.core.resources.filterMatchers extension point.