|Extending Ecore models [message #1792336]
||Mon, 16 July 2018 08:47
|| Ran Wei
Registered: September 2012
Location: York, UK
Hi there, |
This may be a silly question but I hope that I can get some answers here.
I have a metamodel A which acts as an overall packaging metamodel, its root element R contains root element R' in an other metamodel B.
I then extend elements in metamodel B and create a new metamodel C, where its root element R'' extends R' in metamodel B.
Here comes the question:
When creating an instance of A, I create an instance of R. What I want to do is to create an instance of R'' and put it under R. The problem is, by simply looking at metamodel A, EMF knows about metamodel B because they are directly related, but not metamodel C.
Please tell me that I did something wrong, if not, please let me know how to proceed.
Department of Computer Science
University of York
Powered by FUDForum
. Page generated in 0.01590 seconds