Filter Matchers
Identifier:
org.eclipse.core.resources.filterMatchers
Since:
3.6
Description:
The filter matchers extension point allows plug-ins to contribute matchers. The matchers are used by filters applied on containers (folders or projects) to include or exclude some file system objects while populating the resources tree.
Configuration Markup:
<!ELEMENT extension (filterMatcher+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT filterMatcher EMPTY>
<!ATTLIST filterMatcher
class CDATA #REQUIRED
argumentType (none|string|filterMatcher|filterMatchers)
name CDATA #REQUIRED
description CDATA #IMPLIED
ordering (first|last)
id CDATA #REQUIRED>
- class -
- argumentType -
- name -
- description -
- ordering - A hint specifying that this filter should be called first or last among the list of active filters for a given container. Often specified for performance reason.
- id -
Examples:
The following is an example of using the modelProvider extension point.
(in file plugin.xml)
<extension
point="org.eclipse.core.resources.filterMatchers">
<filterMatcher
argumentType="string"
class="org.eclipse.core.internal.resources.RegexFileInfoMatcher">
</filterMatcher>
</extension>
API Information:
The value of the class attribute must represent a
subclass of org.eclipse.core.resources.filtermatchers.AbstractFileInfoMatcher.
Supplied Implementation:
The core resource plugin provides the regex matcher, allowing the user to specify string arguments matching the specification supported by java.util.regex.Pattern.
Copyright (c) 2008, 2009 Freescale Semiconductor and others.
This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0 which
accompanies
this distribution, and is available at
https://www.eclipse.org/legal/epl-v20.html/
SPDX-License-Identifier: EPL-2.0