Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » [xwt] combo cell editor for enums
[xwt] combo cell editor for enums [message #499214] Fri, 20 November 2009 13:02 Go to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 748
Registered: July 2009
Senior Member
I have bound a table viewer column to a emf model object's attribute which is an enum.
How can I set the <ComboBoxCellEditor /> to show the enum's literals?
And how to make the combo cell editor 'READ_ONLY'?
Re: [xwt] combo cell editor for enums [message #499235 is a reply to message #499214] Fri, 20 November 2009 14:19 Go to previous message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
"Erdal Karaca" <erdal.karaca.de@googlemail.com> wrote in message
news:he641g$6hp$1@build.eclipse.org...
>I have bound a table viewer column to a emf model object's attribute which
>is an enum.
> How can I set the <ComboBoxCellEditor /> to show the enum's literals?
> And how to make the combo cell editor 'READ_ONLY'?

You just need to follow the SWT concept:
<ComboBoxCellEditor x:Style="'READ_ONLY" />

We have the QA test for Combo. In general, it should work for ComboViewer.
Please let me know the result. If it doesn't work, feel free to open a bug .

Best regards
Yves YANG
Previous Topic:Developin e4 in Eclipse 3.6M3
Next Topic:[XWT] change input when viewer's selection changes
Goto Forum:
  


Current Time: Mon Oct 20 18:03:08 GMT 2014

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

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