Other/Custom names for objects in EMF-Plugin [message #1052698] |
Tue, 30 April 2013 12:22 |
Joris Lückenga Messages: 7 Registered: March 2013 |
Junior Member |
|
|
Hey everyone,
I hope this question is trivial to answer - but it´s not easy to findy anything about it :/ . I'm using generated Code from an Ecore-Model that I got from an XML Schema file. Now I already used the generated objects in my own code very frequently. When I created the Ecore Model from the Schema File, the Ecore automatically added a "T" to my class "Object". So the Class is called "TObject" now (and that´s ok, because i don´t like to use "Object" in my code). When I start the Plugin, I can create new "TObjects" in my Editor. But in that case - during the runtime - i want the display-name of my "TObject" in the Editor to be only "Object".
In Addition to that, there is a field "Label Feature" in the Genmodel. When i run the plugin, the parameter specified in "Label Feature" is displayed after the class-name. I would prefer if i could leave this field empty (Without "hacking" it by adding an EAttribute with an empty String an selecting it in the Label Feature").
Are these types of customization possible?
I would really appreciate some help
[Updated on: Tue, 30 April 2013 12:23] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03611 seconds