|
Re: ComboBoxPropertyDescriptor assertion [message #290437 is a reply to message #290436] |
Thu, 25 August 2005 14:20 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
The strings are only display strings, they aren't the values for the
combobox cell editor. The values for a ComboBoxCellEditor are Integers only.
If you need something else, then you will need to put a wrapper around
it which converts your input values into integers, and the integers back
into your output values.
Drew wrote:
> When i use ComboBoxPropertyDescriptor , i get an assertion in
> ComboxBoxCellEditor::
>
> protected void doSetValue(Object value) {
> Assert.isTrue(comboBox != null && (value instanceof Integer));
>
> since the value passed in is one of the straings from the initialization
> string[] and not an int. Anybody now the answer to this one?
>
>
>
>
>
>
--
Thanks,
Rich Kulp
|
|
|
Re: ComboBoxPropertyDescriptor assertion [message #290448 is a reply to message #290436] |
Thu, 25 August 2005 15:05 |
Eclipse User |
|
|
|
Originally posted by: sunil_kamath.nohotspammail.com
"Drew" <drew@acm.org> wrote in message news:dekjri$u9c$1@news.eclipse.org...
> When i use ComboBoxPropertyDescriptor , i get an assertion in
> ComboxBoxCellEditor::
>
> protected void doSetValue(Object value) {
> Assert.isTrue(comboBox != null && (value instanceof Integer));
>
> since the value passed in is one of the straings from the initialization
> string[] and not an int. Anybody now the answer to this one?
>
>
Yes, this is a problem with ComboBoxCellEditor.
I rewrote my own ComboBoxCellEditor which takes Strings and allows editing
in the Text widget of the editor.
---
Sunil
|
|
|
Powered by
FUDForum. Page generated in 0.03476 seconds