I have a TreeViewerColumn
with ComboBoxViewerCellEditor
editing support. Now when I use normal Combo i can add autocomplete functionality like this:
new AutoCompleteField(myCombo, new ComboContentAdapter(), valuesArray);
but I found no way to add this functionality to combo inside my TreeViewer.
I have my ovn editing support implemented with protected CellEditor getCellEditor(Object element)
method implemented to return ComboBoxViewerCellEditor in some cases but I cant find a way to add autocomplete function here. Any ideas?
You have to write semething like this new AutoCompleteField(treeviewer.getControl(), new CComboContentAdapter(), valueArray);
and to get CComboContentAdapter
You can copy the source code of ComboContentAdapter
and replace Combo
by CCombo
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.