Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Incorrect references when serializing xtext model
Incorrect references when serializing xtext model [message #1687252] Thu, 19 March 2015 15:23 Go to next message
Teun van de Berg is currently offline Teun van de BergFriend
Messages: 12
Registered: October 2014
Junior Member
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 17:52 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30439
Registered: July 2009
Senior Member
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: Sun Sep 15 18:53:13 GMT 2019

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

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

Back to the top