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
Member
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?
Previous Topic:Widget disposed exception when wizard closed using Return key
Next Topic:toolbar does not wrap
Goto Forum:
  


Current Time: Tue Mar 19 03:28:49 GMT 2024

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

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

Back to the top