Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ComboBoxPropertyDescriptor
ComboBoxPropertyDescriptor [message #78707] Thu, 19 June 2003 21:29
Eclipse UserFriend
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
Previous Topic:New version of diff tool
Next Topic:Class path order when running Eclipse plugin
Goto Forum:
  


Current Time: Fri Jan 03 07:48:03 GMT 2025

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

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

Back to the top