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

On 30/04/2013 2:22 PM, Joris Lückenga wrote:
>
> 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".
The translated/display names for those things are in the
plugin.properties of the generated *.edit project.
>
> 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").
Generally you'll need to specialize the generated getText of the item
providers if you don't like how they display the label. Remember to mark
them @generated not if you modify them so you can regenerate without
losing your changes.
> Are these types of customization possible?
> I would really appreciate some help :)