You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To save an excising model in xmi format in a concrete textual format, the xmi file can be open with the sample reflective model editor. Then it can be saved as a file in textual format by saving it using 'Save as ...' with the corresponding extension.
The xmi file may contain references to other files. If these eProxies are resolved before saving, the serialization is correct.
If the eProxies are not resolved before saving the model, TokenResolvers are used to deresolve the references instead of ReferenceResolvers.
If the model contains unresolved proxies, these proxies should be resolved before saving the model.
To reproduce:
Load an xmi file with references to other files, with the sample reflective model editor.
Save file directly without exploring or validating the model to a textual file.
The text was updated successfully, but these errors were encountered:
I'm not sure how to handle this. You're probably suggesting that the generated resource class should resolve all proxies right before it is saved. Howerer, I'm not sure whether this is a good default behavior. I distinctly remember that there were cases where we explicitly rely on the fact the proxies are not resolved before saving (e.g. in JaMoPP). Is there another way to fix this?
I am trying to reproduce the problem in a small example. So far the problem does not occur when the type of the referenced items is defined in the same metamodel. I can see in the editor that the other resource is loaded while saving the model.
The problem does occur in our real models where the type of the elements that are referred is defined in another metamodel. I will try to construct an example later.
To save an excising model in xmi format in a concrete textual format, the xmi file can be open with the sample reflective model editor. Then it can be saved as a file in textual format by saving it using 'Save as ...' with the corresponding extension.
The xmi file may contain references to other files. If these eProxies are resolved before saving, the serialization is correct.
If the eProxies are not resolved before saving the model, TokenResolvers are used to deresolve the references instead of ReferenceResolvers.
If the model contains unresolved proxies, these proxies should be resolved before saving the model.
To reproduce:
The text was updated successfully, but these errors were encountered: