Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does EMF need a GenModel as well as an Ecore model to generate code?

code ECORE EMF genmodel model
0
10 Posted

Why does EMF need a GenModel as well as an Ecore model to generate code?

0
10

The GenModel is a decorator model for the Ecore model. It specifies information not available in the Ecore model and gives fine grained control over what’s generated. For example, the Ecore model doesn’t indicate where the code should be generated and what the plugin ID (if any) for that target should be; that’s specified in the GenModel. The GenModel also lets you choose among various generation patterns. For example, do you want root interfaces to extend EObject, nothing, or something of your own choosing? And do you want to generate an editor that targets the Eclipse Rich Client Platform versus the Eclipse Integrated Development Environment? So you can think of the GenModel as a giant parameter for controlling and tailoring the code generation process.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123