Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:08 Go to next message
Sann Tran is currently offline Sann TranFriend
Messages: 15
Registered: November 2014
Junior Member
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 13:02 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
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: Fri Apr 26 18:10:07 GMT 2024

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

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

Back to the top