| [news.eclipse.platform.swt] Re: ComboBoxCellEditor and count visible items |
Hi Martin,
the control used by a ComboBoxCellEditor is a CCombo and not a Combo. That's why you are getting a ClassCastException. Replacing Combo by CCombo should probably make your code work.
Regards, Ovidio
How can I set count visible items in the ComboBoxCellEditor by TableViewer??
This doesnt't work: ((Combo) comboBoxCellEditor.getControl())).setVisibleItemCount(10);
Invoke exception: java.lang.ClassCastException: org.eclipse.swt.custom.CCombo
Thanks.
Martin