我有一个TreeViewerColumn
与ComboBoxViewerCellEditor
编辑支持。现在,当我使用普通组合时,我可以添加自动完成功能,如下所示:
new AutoCompleteField(myCombo, new ComboContentAdapter(), valuesArray);
但是我找不到在TreeViewer中将此功能添加到组合中的方法。
protected CellEditor getCellEditor(Object element)
在某些情况下,我使用方法实现了Ovn编辑支持,该方法实现了返回ComboBoxViewerCellEditor的功能,但是在这里找不到添加自动完成功能的方法。有任何想法吗?
您必须像这样写一些东西,new AutoCompleteField(treeviewer.getControl(), new CComboContentAdapter(), valueArray);
然后才能获取CComboContentAdapter
您可以复制的源代码ComboContentAdapter
并替换Combo
为CCombo
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句