### 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 @@ + + + + + + + + +Adding criteria to help content + + + +

Adding criteria to help content

+ +

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.

+ +

What is 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. +

+ +

Define criteria in table of contents

+ +

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:

+ + +

Define criteria using criteria provider

+

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...

+ + +

Criteria localization

+

Localization is supported in criteria definition. +Follow these steps to add localization information for criteria:

+ +

Set preference to enable criteria

+

Define necessary parameter in org.eclipse.help/preference.ini to enable criteria

+ +

+See Also: +
+The criteria definition extension point. +
+The criteria provider extension point. +

+ + \ No newline at end of file Index: topics_Guide.xml =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.platform.doc.isv/topics_Guide.xml,v retrieving revision 1.199 diff -u -r1.199 topics_Guide.xml --- topics_Guide.xml 13 Apr 2010 17:10:29 -0000 1.199 +++ topics_Guide.xml 14 May 2010 06:27:51 -0000 @@ -384,6 +384,7 @@ +