[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: ComboBoxCellEditor and count visible items

oops, sorry for the post parallel to that of Tom Schindl...

Ovidio Mallo wrote:
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

Martin Jedlička wrote:
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