ComboBoxPropertyDescriptor [message #78707] |
Thu, 19 June 2003 21:29 |
Eclipse User |
|
|
|
Originally posted by: bob.donovan.sdrc.com
Hi,
I am trying to use the ComboBoxPropertyDescriptor to populate the
Properties View.
In getgetPropertyDescriptors(), I am able to set the proper
propertyDescriptor..
propertyDescriptors[3] = new ComboBoxPropertyDescriptor(PROPERTY_TYPE,
PROPERTY_TYPE, typeChoices);
But in getPropertyValue(), I am trying to figure out whether I should be
returing an Ingeger or a String as the value. When I return a string, the
property shows the correct string value but when I later try the edit the
property, I get a stack dump. I think I get the stack dump because the
ComboBoxPropertyDescriptor is expecting an Integer.
So I tried returing an integer in getPropertyValue() for my property
(index in the range of the string array) and now the combobox works (with
no stack dump). But the Propeties screen (when first populated) shows a
number (index) instead of one of the string choices from the String[].
Bob
|
|
|
Powered by
FUDForum. Page generated in 0.03733 seconds