[editor] UI remove class prefix when similar to package name [message #1219683] |
Thu, 05 December 2013 12:08 |
rodney medina Messages: 2 Registered: December 2013 |
Junior Member |
|
|
Hi, (excuse me for my english)
I found a problem when reusing the model's name in a class's name.
Here an example :
model : Library.ecore
a class in the model : LibraryClass1
After generating the editor, the UI indicate only Class1.
I have noted that the file plugin.properties contain this error.
ex: _UI_LibraryClass1_type = Class1
Is this a bug, a naming convention or do i have to handle manually this problem ?
Merci d'avance.
[Updated on: Thu, 05 December 2013 13:45] Report message to a moderator
|
|
|
Re: [editor] UI remove class prefix when similar to package name [message #1219712 is a reply to message #1219683] |
Thu, 05 December 2013 14:22 |
|
Hi,
You can change the type-name label that is generated for your EClass in
the plugin.properties file of your model's edit plug-in. EMF will not
overwrite your change if and when you later re-generate the model.
Look for the _UI_LibraryClass1_type key in the plugin.properties.
HTH,
Christian
On 2013-12-05 13:34:03 +0000, rodney medina said:
> Hi, (excuse me for my english)
>
> I found a problem when reusing the model's name in a class's name.
>
> Here an example :
>
> model : Library.ecore
> a class in the model : LibraryClass1
>
> After generating the editor, the UI indicate only Class1.
>
> I found that this issue came from the label modification :
>
> class LibraryWizard -> initialObjectField.add(getLabel(objectName));
>
> class DelegatingResourceLocator -> method getString(String key)
>
> Is this a bug, a naming convention or do i have to handle manually this
> problem ?
>
> Merci d'avance.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03659 seconds