|Reference Model A classes in Model B without regenerating Model A [message #1803209]
||Mon, 25 February 2019 10:48
| Lars D
Registered: September 2018
I am trying to reference an ecore Model A in another ecore Model B.|
A class in Model A is e.g. ClassA in packageA.
A second class ClassB in ModelB should use ClassA as a ESuper Type.
The generated ClassA of Model A contains code that is not generated (marked @generated NOT).
I can load the Model A in Model B via the "Load Resource..." wizard. I then can use the ClassA as a Esuper Type for ClassB.
When I open the .genmodel of ModelB it offers me to generate packageA as well as packageB.
However I only want to generate packageB that contains ClassB. ClassA should be referenced from another plugin where it was already generated.
This seems like a simple problem. A class in Model B should reference a class in Model A in another package that is in another plugin.
For Example I have a generated package from Model A with the name "org.mydomain.modelA" which contains Class A.
My second package from Model B should be generated as "org.mydomain.modelB". The ClassB in this package should import the generated ClassA as "import org.mydomain.modelA.ClassA".
[Updated on: Mon, 25 February 2019 10:50]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02089 seconds