Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » ComboBox doesnt work
ComboBox doesnt work [message #235024] Mon, 04 June 2007 15:01 Go to next message
Eclipse UserFriend
Originally posted by: Lehmann.j.gmx.net

Hello,

i got the following problem. I want to have a ComboBox inside the Properties
of a Figure but it wont work. Anyone have a clue about that problem ?


Screenshot with the evil problem :
http://img19.imageshack.us/img19/5760/comboboxef7.jpg
and here is the code:

String[] meas = {"none", "Voltage", "Current", "Both"};

public IPropertyDescriptor[] getPropertyDescriptors(){

return new IPropertyDescriptor[]{

new TextPropertyDescriptor(NAME, "Indicator"),

.... ,



new ComboBoxPropertyDescriptor(MEASUREMENT, "Measurement", meas)

};}
Re: ComboBox doesnt work [message #235055 is a reply to message #235024] Mon, 04 June 2007 20:02 Go to previous message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Jens,

Put a breakpoint on the constructor for ComboBoxPropertyDescriptor and see
of your labels array is being passed in as expected.

Cheers...
Anthony

"Jens Lehmann" <Lehmann.j@gmx.net> wrote in message
news:f419j0$4pt$1@build.eclipse.org...
> Hello,
>
> i got the following problem. I want to have a ComboBox inside the
> Properties of a Figure but it wont work. Anyone have a clue about that
> problem ?
>
>
> Screenshot with the evil problem :
> http://img19.imageshack.us/img19/5760/comboboxef7.jpg
> and here is the code:
>
> String[] meas = {"none", "Voltage", "Current", "Both"};
>
> public IPropertyDescriptor[] getPropertyDescriptors(){
>
> return new IPropertyDescriptor[]{
>
> new TextPropertyDescriptor(NAME, "Indicator"),
>
> ... ,
>
>
>
> new ComboBoxPropertyDescriptor(MEASUREMENT, "Measurement", meas)
>
> };}
>
>
>
>
>
>
Previous Topic:Standalone GEF
Next Topic:Does ScaledGraphics implement setBackgroundPattern() in 3.3?
Goto Forum:
  


Current Time: Fri Aug 12 14:10:22 GMT 2022

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

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

Back to the top