The last item of Combobox in Properties View is blank [message #1645160] |
Mon, 02 March 2015 06:08  |
Eclipse User |
|
|
|
Hi,
In Properties View of runtime (or even the Properties View of .odesign file), when I click to a combobox to open items list, I found that the last item is blank (you can see in the attached image)
So how can I remove this unnecessary blank item?
Thanks.
|
|
|
Re: The last item of Combobox in Properties View is blank [message #1645334 is a reply to message #1645160] |
Mon, 02 March 2015 08:02  |
Eclipse User |
|
|
|
Hi,
This is not a Sirius related question but a EMF one. The fact to have a
blank item comes from
org.eclipse.emf.edit.provider.ItemPropertyDescriptor.getComboBoxObjects().
To avoid that for your property, you could update your XXXItemProvider
to create a custom IItemPropertyDescriptor which override
ItemPropertyDescriptor.getChoiceOfValues() to remove the "null" value
from the collection. You can also ask your question on the EMF group
perhaps someone has a better solution.
Best Regards.
Le 02/03/2015 12:08, Sann Tran a écrit :
> Hi,
> In Properties View of runtime (or even the Properties View of .odesign file), when I click to a combobox to open items list, I found that the last item is blank (you can see in the attached image)
>
> So how can I remove this unnecessary blank item?
>
> Thanks.
>
--
Esteban Dugueperoux - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03196 seconds