Bug 200762 [FieldAssist] SimpleContentProposalProvider filters out exact matches
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()
bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/SimpleContentProposalProvider.java
}
			}
			return (IContentProposal[]) list.toArray(new IContentProposal[list
					.size()]);
		}
		if (contentProposals == null) {
			contentProposals = new IContentProposal[proposals.length];
			for (int i = 0; i < proposals.length; i++) {
				contentProposals[i] = makeContentProposal(proposals[i]);
			}
		}
		return contentProposals;
	}
	/**
	 * Set the Strings to be used as content proposals.
	 * 
	 * @param items
	 *            the array of Strings to be used as proposals.
	 */
	public void setProposals(String[] items) {
		this.proposals = items;
		contentProposals = null;
	}
	/**
	 * Set the boolean that controls whether proposals are filtered according to
	 * the current field content.
	 * 
	 * @param filterProposals
	 *            <code>true</code> if the proposals should be filtered to
	 *            show only those that match the current contents of the field,