Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Use AutoCompleteField and ContentProposalAdapter
Use AutoCompleteField and ContentProposalAdapter [message #915910] Tue, 18 September 2012 07:52
budili Missing name is currently offline budili Missing nameFriend
Messages: 64
Registered: May 2010

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:
            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)
        autoCompleteField = new AutoCompleteField(text, new TextContentAdapter(), textInput);

Some ideas?
Previous Topic:Widget disposed exception when wizard closed using Return key
Next Topic:toolbar does not wrap
Goto Forum:

Current Time: Wed Jun 20 05:56:23 GMT 2018

Powered by FUDForum. Page generated in 0.02271 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top