Accessing external meta-models and code generation [message #1599563] |
Tue, 03 February 2015 13:34  |
Eclipse User |
|
|
|
If I have a (meta)model M1 that needs references to elements from another (meta)model M0, defined in a separate modelling project, I can import M0 in M1 by adding M0 to the Project dependencies of M1. However, when I generate code from the genmodel of M1, this generates the code for M0 as well, inside the src folder of M1. This pretty much defeats the purpose of reusable models, yielding duplicate code (the code for M0 is now in two places: M0/src and M1/src). Is there a way to generate code for M1 so that it refers to the already generated code for M0 in its own project? Without this ability, as soon as we have a couple of models depending on others, we get into a maintenance nightmare.
Thanks.
I'm using
Ecore Diagram Editor 2.0.3.201411191338 org.eclipse.emf.ecoretools.design.feature.group Eclipse Modeling Project
with
Eclipse Modeling Tools 4.4.1.20150109-0740 epp.package.modeling null
on
Eclipse Modeling Tools
Version: Luna Service Release 1a (4.4.1)
Build id: 20150109-0600
|
|
|
|
Powered by
FUDForum. Page generated in 0.04862 seconds