Community
Participate
Working Groups
Created attachment 207901 [details] ZIP archive that contains the plug-ins to reproduce this problem and the screenshots Since Eclipse 3.7 the org.eclipse.help.searchProcessor extension point can be used to modify the search result list (see http://help.eclipse.org/indigo/topic/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_help_base_searchProcessor.html). Unfortunately, if a search processer adds items, removes items or changes the order of the items so that the returned search results list contains items of the same category but not one after another then (if "Show search categories" is enabled) this search result category is shown multiple times (see attached screenshot). Steps to reproduce: 1. Install both plug-ins "doc.a" and "doc.b" that are contained in the attached DuplicatedSearchCategoriesBug.zip file 2. Start Eclipse and open help: "Help > Help Contents" 3. In search input field enter "DuplicatedSearchCategoriesBug" and hit "Go" 4. Make sure that "Show results categories" is enabled Is: The search category "Documentation A" is shown twice (see screenshot "bug.png" in DuplicatedSearchCategoriesBug.zip) Expected/should: The search category "Documentation A" should only be shown one time containing "Topic 1" and "Topic 2" (see pseudo screenshot "expected.png" in DuplicatedSearchCategoriesBug.zip)
Created attachment 207902 [details] Proposed patch
Created attachment 208214 [details] Proposed patch (in Git patch format) First proposed patch corrected: sorting after search processors post-processing by categories only (to avoid that the sorting by the search processors is reverted)
Gerrit patch set: https://git.eclipse.org/r/#/c/21547/
Released as http://git.eclipse.org/c/platform/eclipse.platform.ua.git/commit/?id=db9fe060d2d90831010e426a1f3f7eaf4a58f02b Thanks Holger. PW
Verified in I20140528-2000.