Hello,
I want to use the AutoCompleteField and ContentProposalAdapter for my textfield.
The ContentProposalAdapter to show alle entries (about Ctrl+Space) and the AutoCompleteField for auto completion, when the user type in the textfield.
If I use both of them I have some problems, e.g. if I open the proposal about the shortcut (ctrl+space) and select an item, so the proposal will be opened again and show me my selected item. It is possible to deactivate this?
Here's the code:
try
{
final KeyStroke keyStroke = KeyStroke.getInstance("Ctrl+Space"); //$NON-NLS-1$
contentAdapter = new ContentProposalAdapter(text, new TextContentAdapter(), new SimpleContentProposalProvider(textInput), keyStroke, null);
}
catch (final ParseException exception)
{
LOGGER.debug(exception);
}
autoCompleteField = new AutoCompleteField(text, new TextContentAdapter(), textInput);
Some ideas?