|
|
|
Re: Cross Reference in Ecore Editor [message #1805826 is a reply to message #1805821] |
Thu, 25 April 2019 03:26 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
To make a *.ecore model's classifiers available for use in another *.ecore model, you must use Load Resource... in the Sample Ecore Editor's context menu to, in your example, load ModelA.ecore into the editor you are using to edit ModelB.ecore. Once you do that, the cell editors will offer choices from ModelA.ecore while editing ModelB.ecore. Once you actually use ModelA.ecore in ModelB.ecore, i.e., add a EReference foo to EClass ClassX that references EClass ClassY from ModelA, then when you open ModelB.ecore in the editor, ModelA.ecore will automatically be loaded (when the cross reference is resolved). If you enable Live Validation from the context menu or the menu bar (which is always a good idea to have enabled), all cross references will automatically be resolved by the validator whenever you load ModelB.ecore (or any other model).
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09123 seconds