Referenced model in a jar [message #1829757] |
Fri, 10 July 2020 05:14  |
Eclipse User |
|
|
|
I need to maintain an RCP application with an Ecore model B that is an extension of an external model A.
Model A does not exist in my workspace but in an external bundle that is in my Plug-In Dependencies. This bundle is currently not built as an Eclipse plug-in, because it is designed to run in a non-Eclipse environment. It has a Manifest and contains the *.ecore files and the genmodel in a model folder but there is no plugin.xml.
So far we have applied a workaround by copying the *.ecore files of model A out of the jar into the model folder of model B. This way we could easily create references from B to A since they were in the same folder. Then we only generate the code for model B, and at runtime the references are properly resolved to the external bundle. So far so good (or bad).
This is not a nice approach, and we are facing the second plug-in that would need to do the same copying.
I have been trying to add a plugin.xml to the external bundle with extensions to "org.eclipse.emf.ecore.generated_package", but still at genmodel load time of model B EMF cannot find the genmodel or the ecore files of model A.
What is the "correct" way of extending an Ecore model that is not in your workspace but only lives in a plug-in dependency jar?
Thank you for any hints.
Wernke
[Updated on: Fri, 10 July 2020 05:40] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06014 seconds