Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335348

Summary: [Help][Search] searchProcessor extension point can show duplicates in alternate expression
Product: [Eclipse Project] Platform Reporter: Chris Goldthorpe <cgold>
Component: User AssistanceAssignee: Chris Austin <ChrisAustin>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 3.7   
Target Milestone: 3.7 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch to remove duplicate search expressions and sort alphabetically none

Description Chris Goldthorpe CLA 2011-01-25 12:16:18 EST
I20110124-1345

Create two extensions using the org.eclipse.help.base.searchProcessor extension point, both of which make return the same alternate term. That alternate term appears twice in the results, it would be better to remove duplicates.
Comment 1 Chris Austin CLA 2011-02-01 12:29:32 EST
Created attachment 188065 [details]
Patch to remove duplicate search expressions and sort alphabetically

This patch does not add a term if it is already in the list.  Also, I added a sort so that the remaining terms are easily viewed alphabetically.
Comment 2 Chris Austin CLA 2011-02-01 12:33:55 EST
Patch committed to HEAD.
Comment 3 Chris Austin CLA 2011-02-01 12:36:40 EST
Resolved.