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

Bug 332533

Summary: [FieldAssist] AutoCompleteField case sensitive match
Product: [Eclipse Project] Platform Reporter: Juergen Weber <juergen>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: remy.suen
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Juergen Weber CLA 2010-12-14 10:30:08 EST
Build Identifier: 20100917-0705

AutoCompleteField should have an option setter or constructor to case sensitively match proposals (this would delegate to SimpleContentProposalProvider)

Reproducible: Always
Comment 1 Susan McCourt CLA 2010-12-15 13:44:57 EST
sounds simple enough, if you prepare a patch, I'll have a look
Comment 2 Juergen Weber CLA 2010-12-15 14:05:34 EST
No patch, but I'd suggest overloading the constructor with a java.util.Comparator


public AutoCompleteField(Control control,
			IControlContentAdapter controlContentAdapter, String[] proposals, Comparator c)
...
proposalProvider.setComparator(c);

SimpleContentProposalProvider:

getProposals(String, int) would have to use the Comparator.

and if you are at it, you might a another parameter to the constructor, an IProposalsProvider which would dynamically provide proposals to getProposals() ..
Comment 3 Eclipse Webmaster CLA 2019-09-06 16:19:00 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.