### Eclipse Workspace Patch 1.0 #P org.eclipse.platform.doc.isv Index: guide/ua_help_content_criteria.htm =================================================================== RCS file: guide/ua_help_content_criteria.htm diff -N guide/ua_help_content_criteria.htm --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ guide/ua_help_content_criteria.htm 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,113 @@ + + +
+ + + + + +This page will explain how to activate criteria. Criteria must be defined either in the toc or using a +criteria provider and that the preferences must be set to enable criteria.
+ +Some topics of the plug-in might only focus on some special fields. +Criteria information is added to represent these fields, which will be helpful for users to locate topics they interested in. +
+ +When defining Toc structure, criteria information can be appended according to these steps:
+For example:
++ <toc href="tochref"> + <criteria name="platform" value="AIX"> + <criteria name="platform" value="Windows"> + <topic label="label1" href="href1"> + <criteria name="platform" value="Windows"> + </topic> + <topic label="label2" href="href2"> + <criteria name="platform" value="AIX"> + </topic> + </toc> ++
Some rule to follow when adding criteria:
+Uses class AbstractCriteriaProvider to allow for criteria to be defined dynamically. +Criteria defined using this extension point will be merged with those defined in the table of contents +and if multiple criteria providers are defined each will contribute to the criteria of an ITopic or IToc. +
+ +Pending for Chris to fill in some detail information...
+ + +Localization is supported in criteria definition. +Follow these steps to add localization information for criteria:
++ <extension point="org.eclipse.help.criteriaDefinition"> + <criteriaDefinition file="criteria.xml"> + </extension> ++
+ <criteriaDefinition> + <criterion id="platform" name="Platform"> + <criterion-value id="AIX" name="AIX Server"/> + <criterion-value id="Windows" name="Windows Server"/> + </criterion> + </criteriaDefinition> ++
Define necessary parameter in org.eclipse.help/preference.ini to enable criteria
+example: enableCriteria = true/false
example: supportedCriteria = platform,version+which means that 'platform' and 'version' are the supported criteria in help system. +
+See Also:
+
+The criteria definition extension point.
+
+The criteria provider extension point.
+