Community
Participate
Working Groups
Created attachment 121110 [details] Patch for adding extra filters The purpose of Extra Filters is to provide an easy way for user to define some filters to process the documentation plug-ins sent from the server. To make your filters works, you should follow some steps: 1. Define a filter class used to do the filter by extending a class named AbstractPrioritizedFilter and implementing an interface named IFilter. 2. Extend the extension point "org.eclipse.help.webapp.contentFilter", which is newly defined in Plugin "org.eclipse.help.webapp". You should specify each filter's name in plugin.xml. Besides, you can also specify the filter's priority which will be used as a basis when filtering the files.
The purpose of Extra Filters is to provide an easy way for user to define some filters to process the documentation plug-ins sent from the server. To make your filters works, you should follow some steps: 1. Define a filter class used to do the filter by extending a class named AbstractPrioritizedFilter and implementing an interface named IFilter. 2. Extend the extension point "org.eclipse.help.webapp.contentFilter", which is newly defined in Plugin "org.eclipse.help.webapp". You should specify each filter's name in plugin.xml. Besides, you can also specify the filter's priority which will be used as a basis when filtering the files.
Reopening - the bug does not get marked as fixed until the change is commited.
Created attachment 121546 [details] Patch including modifications I made myself I have updated the patch to make the following changes: 1. The extension point was added to plugin.xml in org.eclipse.help.webapp 2. Used IFilter as the class defined in the extension and moved to the package org.eclipse.help.webapp. This means that the API does not rely on any internal classes. 3. Made the default priority 1 4. Documented the extension 5. Restored code which the patch had deleted allowing product specific page not found page and allowing for no error page. 6. Changed code to only read extensions once so that error messages for classes which cannot be loaded are not written to the log every time a page is read 7. Reversed the sort order of extensions so lower numbers are processed first 8. Added JUnit tests
The authors of the original patch were Zhuang Chen and Mei Yang. The submission has recieved IP approval (CQ 2920). The most recently attached patch has been committed to HEAD. FIXED.