Criteria Definition



For registering a criteria definition for contributed help content.

Configuration Markup:

<!ELEMENT extension (criteriaDefinition | criteriaDefinitionProvider)+>

<!ATTLIST extension




<!ELEMENT criteriaDefinition EMPTY>

<!ATTLIST criteriaDefinition


A criteria contribution made by supplying an XML file

<!ELEMENT criteriaDefinitionProvider EMPTY>

<!ATTLIST criteriaDefinitionProvider


(since 3.5) an criteria definition contribution made by plugging in code

The following is an example of using the criteria definition extension point.

(in file plugin.xml)

 <extension point="">
     <criteriaDefinition file="criteria.xml"/>

(in file criteria.xml)

    <criterion id="version" name ="Version">
        <criterion-value id="1.0" name ="1.0"/>
        <criterion-value id="2.0" name ="2.0"/>
    <criterion id="product" name ="Product">
        <criterion-value id="DB2" name ="DB2"/>
        <criterion-value id="WAS" name ="WAS"/>

Internationalization The criteria definition XML files can be translated and the resulting copy should be placed in nl/<language>/<country> or nl/<language> directory. The <language> and <country> stand for two letter language and country codes as used in locale codes. For example, Traditional Chinese translations should be placed in the nl/zh/TW directory. The nl/<language>/<country> directory has a higher priority than nl/<language>. Only if no file is found in the nl/<language>/<country>, the file residing in nl/<language> will be used. The root directory of a plugin will be searched last.

API Information:
An implementation of must be supplied if a criteriaDefinitionProvider is used.

Supplied Implementation:
The default implementation of the help system UI supplied with the Eclipse platform fully supports the criteriaDefinition extension point.

Copyright (c) 2010 IBM Corporation 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 SPDX-License-Identifier: EPL-2.0