Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Not all labels for enumeration values are shown in property sheet view
Not all labels for enumeration values are shown in property sheet view [message #758170] Tue, 22 November 2011 08:50 Go to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

I have the problem that the property sheet view is always leaving the label for one enumeration value blank. Can I change this behaviuor through my models? I could find nothing in the ecore and generator model. Here an example:

My model:
A
B
C
D

The combobox of the property sheet view displays:
A

C
D

Thanks!

Ralph

[Updated on: Tue, 22 November 2011 08:50]

Report message to a moderator

Re: Not all labels for enumeration values are shown in property sheet view [message #758176 is a reply to message #758170] Tue, 22 November 2011 08:57 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Ralph,

Comments below.


On 22/11/2011 9:50 AM, ralph. wrote:
> Hi,
>
> I have the problem that the property sheet view is always leaving the
> label for one enumeration value blank. Can I change this behaviuor
> through my models?
I'd not expect such behavior in the first place.
> I could find nothing in the ecore and generator model. Here an example:
>
> My model:
> A
> B
> C
> D
>
> The combobox of the property sheet view displays:
>
> A
>
You can look at what's happening in
ItemPropertyDescriptor.ItemDelegator.convert.

if (eDataType instanceof EEnum)
{
try
{
return
resourceLocator.getString
("_UI_" + eDataType.getName() + "_" +
((Enumerator)value).getName() + "_literal");
}
catch (MissingResourceException exception)
{
// Ignore
}
}

Perhaps the plugin.properties defines the label to be empty.
> C
> D
>
> Thanks!
>
> Ralph


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Not all labels for enumeration values are shown in property sheet view [message #758182 is a reply to message #758176] Tue, 22 November 2011 09:29 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi Ed,

you are 100% right. The plugin.properties had it blank. Deleting it an regenerating the .edit code did help. I forgot that there is an issue with merging existing .properties files at code generation.

Thanks a lot!

Ralph
Previous Topic:[Query2] Execute queries on large model
Next Topic:Dynamic EMF and XSD
Goto Forum:
  


Current Time: Fri Apr 26 13:53:30 GMT 2024

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

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

Back to the top