Bug 200762 - [FieldAssist] SimpleContentProposalProvider filters out exact matches
Summary: [FieldAssist] SimpleContentProposalProvider filters out exact matches
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.4 M3   Edit
Assignee: Susan McCourt CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-08-22 01:19 EDT by Amir Kouchekinia CLA
Modified: 2007-10-30 13:40 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amir Kouchekinia CLA 2007-08-22 01:19:56 EDT
Build ID: I20070625-1500

Steps To Reproduce:
1. Trigger content assist on a field that uses org.eclipse.jface.fieldassist.AutoCompleteField with SimpleContentProposalProvider 
2. If one of the choices is 'foo' and another is 'foobar', typing 'foo' in the field will remove it from the list of proposals leaving 'foobar' selected. If the user presses the enter key, foobar is placed in the field instead of 'foo'.


More information:
To fix the problem, change line 70:

From: if (proposals[i].length() > contents.length()

To: if (proposals[i].length() >= contents.length()
Comment 1 Susan McCourt CLA 2007-09-26 13:55:18 EDT
Fixed in HEAD >20070926.

Gotta love it when such a silly error is present in a class called "SimpleContentProposalProvider."  ;-)

Thanks for the fix.
Comment 2 Susan McCourt CLA 2007-10-30 13:40:21 EDT
verified on WinXP, I20071029-0800, using latest field assist example