Skip to main content



      Home
Home » Modeling » EMF » Incorrect references when serializing xtext model
Incorrect references when serializing xtext model [message #1687252] Thu, 19 March 2015 11:23 Go to next message
Eclipse UserFriend
Hi,

I observed the following behavior which I suspect is a bug:
1) I open a model in the sample reflective ecore editor. This model has no external references, has internal references, is valid, and is currently persisted in a format defined though xtext.
2) I save this model as xmi (modeltype extension).
The resulting model is invalid. The internal dependencies (references) still point to the original xtext objects.
If, between steps 1 and 2 I execute a validation on my model the references persisted in step 2 are correctly set to internal references of the newly saved model.
I'm using Eclipse Luna SR1.

Kind regards,
Teun
Re: Incorrect references when serializing xtext model [message #1687543 is a reply to message #1687252] Thu, 19 March 2015 13:52 Go to previous message
Eclipse UserFriend
Teun,

Comments below.


On 19/03/2015 4:23 PM, Teun van de Berg wrote:
> Hi,
>
> I observed the following behavior which I suspect is a bug:
> 1) I open a model in the sample reflective ecore editor. This model
> has no external references, has internal references, is valid, and is
> currently persisted in a format defined though xtext.
> 2) I save this model as xmi (modeltype extension).
> The resulting model is invalid. The internal dependencies (references)
> still point to the original xtext objects.
> If, between steps 1 and 2 I execute a validation on my model the
> references persisted in step 2 are correctly set to internal
> references of the newly saved model.
Saving will not resolve proxies so it's likely a case of using proxies
that have not yet been resolved and are saved as is.
> I'm using Eclipse Luna SR1.
>
> Kind regards,
> Teun
Previous Topic:Create a new model (instance) that conforms to my metamodel in Java class
Next Topic:[EMF Ant Task] genModel attribute in plugin.xml not generated
Goto Forum:
  


Current Time: Sat Aug 30 15:00:22 EDT 2025

Powered by FUDForum. Page generated in 0.03037 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top