Skip to main content



      Home
Home » Eclipse Projects » Sirius » The last item of Combobox in Properties View is blank(The last item of Combobox in Properties View is blank)
The last item of Combobox in Properties View is blank [message #1645160] Mon, 02 March 2015 06:08 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Auto-completion not working for semantic candidates expression property
Next Topic:Sirius and UML-Designer
Goto Forum:
  


Current Time: Tue May 13 06:01:13 EDT 2025

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

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

Back to the top