|Synch EMF and GMF [message #1275895]
||Sun, 23 March 2014 20:37
| Luca Gherardi
Registered: November 2010
I have defined two Ecore models, let's say A and B.
B contains references to elements defined in A.
For A I have a GMF diagram editor, for B I'm using an XText DSL.
At runtime the model A is loaded twice. The first instance (A_1) is created by the GMF editor and the second (A_2) by the DSL editor. Is that correct?
I have an Eclipse command which retrieves the DSL model (model B) and operates on elements defined in both A_2 and B.
However, the changes performed on the elements of A_2 are not visible in the GMF editor (model A_1), since they are performed on the instance created by the Xtext editor (A_2).
Is there a way of having a single instance, or reflecting the changes made on A_2 on the model A_1 used by the GMF editor, or again programmatically open a new GMF editor which visualize the same model A_1 which is used by the XText editor?
Thanks in advance!
Powered by FUDForum
. Page generated in 0.02200 seconds