Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » One genmodel vs. multiple genmodels
One genmodel vs. multiple genmodels [message #501380] Wed, 02 December 2009 02:01 Go to next message
Pete Ellis is currently offline Pete EllisFriend
Messages: 85
Registered: July 2009
Member
Hello everyone,

A question that I've been curious about for a while...

Given a plug-in with several packages, each package containing EMF annotated
model code, I have a choice in how to proceed with respect to generating the
code:

1) Build a single genmodel for the plug-in that governs all .ecore models
and provides a centralized point for all of the plug-ins code generation,

2) Build several genmodels, one for each package in the plug-in (one-to-one
association between genmodel and ecore model), or

3) Build a few genmodels that have some non-overlapping relationship with
the various ecore models.

In general, are there any advantages/disadvantages to having one vs.
multiple genmodels in a plug-in containing multiple packages with model
code? Any reason to choose one over the other?

Thanks for any insight on this,
-Pete
Re: One genmodel vs. multiple genmodels [message #501473 is a reply to message #501380] Wed, 02 December 2009 13:56 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30631
Registered: July 2009
Senior Member
Pete,

Comments below.


Pete Ellis wrote:
> Hello everyone,
>
> A question that I've been curious about for a while...
>
> Given a plug-in with several packages, each package containing EMF annotated
> model code, I have a choice in how to proceed with respect to generating the
> code:
>
> 1) Build a single genmodel for the plug-in that governs all .ecore models
> and provides a centralized point for all of the plug-ins code generation,
>
> 2) Build several genmodels, one for each package in the plug-in (one-to-one
> association between genmodel and ecore model), or
>
> 3) Build a few genmodels that have some non-overlapping relationship with
> the various ecore models.
>
> In general, are there any advantages/disadvantages to having one vs.
> multiple genmodels in a plug-in containing multiple packages with model
> code? Any reason to choose one over the other?
>
It seems better to have a single one per project, otherwise it's
possible they specify conflicting properties for stuff like the plugin ID.
> Thanks for any insight on this,
> -Pete
>
>
>
Previous Topic:Different Versions same Plug-In
Next Topic:Command to put to an EMap ?
Goto Forum:
  


Current Time: Thu Nov 14 16:23:40 GMT 2019

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

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

Back to the top