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

Well if you read your exception carefully you'll notice that your cast is wrong and has to be CCombo instead of Combo.

Tom

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


--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl                                          JFace-Committer
--------------------------------------------------------------------