Is there a reasonable autocomplete widget for SWT / JFace?

I have autocomplete for my application, but there are some features that I need to take care of.

My field support is a list of objects that can have multiple fields (e.g. id and name). Autofill should work on one. After completion, the field should contain an identifier, not a name, and it should be possible to enter something else, namely an identifier that does not belong to the object of this list.

Has anyone built something similar for SWT / JFace?

+3
source share
2 answers

Try to find a package org.eclipse.jface.fieldassist, it can do what you want. More specifically, you can write your own ContentProposalAdapter, add IContentProposalListenerand attach it to the event widget changes Text, for example.

+3
source

I used SWT add-ins to auto-fill text fields. They are not perfect, but they worked for me.

+3
source

Source: https://habr.com/ru/post/1787899/


All Articles