Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ComboBoxPropertyDescriptor assertion
ComboBoxPropertyDescriptor assertion [message #290436] Thu, 25 August 2005 14:16 Go to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
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?
Re: ComboBoxPropertyDescriptor assertion [message #290437 is a reply to message #290436] Thu, 25 August 2005 14:20 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Vertical ToolBar in ApplicationWindow
Next Topic:Sections of a perspective
Goto Forum:
  


Current Time: Fri Apr 26 12:08:24 GMT 2024

Powered by FUDForum. Page generated in 0.03476 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top