Filters

Identifier:
org.eclipse.core.resources.filters

Since:
3.6

Description:
A filter extension allows defining resource filter types that can be applied on a folder to remove file system objects from populating the resource tree.

Configuration Markup:

<!ELEMENT extension (filter+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>


<!ELEMENT filter EMPTY>

<!ATTLIST filter

class        CDATA #REQUIRED

argumentType (none|string|filter|filters)

name         CDATA #REQUIRED

description  CDATA #IMPLIED

ordering     (first|last)

>


Examples:
The following is an example of using the modelProvider extension point. (in file plugin.xml)

   <extension
         point="org.eclipse.core.resources.filters"
         id="regexFilter">
      <filter
            argumentType="string"
            class="org.eclipse.core.internal.resources.RegexFilterProvider"
            hasArguments="true">
      </filter>
   </extension>

API Information:
The value of the class attribute must represent an implementation of org.eclipse.core.resources.IFileInfoFilterFactory.

Supplied Implementation:
The core resource plugin provides the regex filter, allowing the user to specify string arguments matching the specification supported by java.util.regex.Pattern.


Copyright (c) 2008, 2009 Freescale Semiconductor and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html