type-ahead

Looking for a Combo(Viewer) in SWT/JFace which supports autocomplete

拥有回忆 提交于 2019-12-21 07:48:06
问题 I'm looking for a Combo(Viewer) in SWT/JFace which supports autocomplete / type-ahead, i.e. the user can enter a couple of characters and the drop down list should show all matching elements. 回答1: You can also check out the org.eclipse.jface.fieldassist.AutoCompleteField class. It's not a combo, just a text field, but it adds auto complete functionality as if it were a combo very easily. You can do something as simple as this: Text textField = new Text(parentComposite, SWT.BORDER); new

Looking for a Combo(Viewer) in SWT/JFace which supports autocomplete

馋奶兔 提交于 2019-12-04 01:56:31
I'm looking for a Combo(Viewer) in SWT/JFace which supports autocomplete / type-ahead, i.e. the user can enter a couple of characters and the drop down list should show all matching elements. You can also check out the org.eclipse.jface.fieldassist.AutoCompleteField class. It's not a combo, just a text field, but it adds auto complete functionality as if it were a combo very easily. You can do something as simple as this: Text textField = new Text(parentComposite, SWT.BORDER); new AutoCompleteField(textField, new TextContentAdapter(), new String[] {"autocomplete option 1", "autocomplete option