Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Issue with References when upgrading to 2.5
Issue with References when upgrading to 2.5 [message #500796] Sat, 28 November 2009 20:33 Go to next message
Volker Wegert is currently offline Volker WegertFriend
Messages: 176
Registered: July 2009
Senior Member
Hi all,

I'm currently upgrading a project from EMF 2.3 to 2.5. The old model files
contain references like this:

<elements xsi:type="m:Foo" alias="MY_FOO" />
<elements xsi:type="m:Bar" associatedFoo="MY_FOO" />

That is, in my Ecore model, the attribute alias of class Foo has ID set to
true, and all references are serialized using this attribute. I don't recall
changing anything to get this behaviour, but this might not mean much - I
haven't had to touch this model in almost two years.

After upgrading - without changing either the ecore or the genmodel, but after
regenerating of course - I can no longer open the old models. The error
message is UnresolvedReferenceException: Unresolved Reference 'MY_FOO'. When I
create a new model, I can see that the serialization has changed like this:

<elements xsi:type="m:Foo" alias="MY_FOO" xmi:id="_xxxxx" />
<elements xsi:type="m:Bar" associatedFoo="_xxxxx" xmi:id="_yyyyy" />

Is it possible to get the old behaviour back? I should mention that I
use a customized editor that I can't regenerate - perhaps I'll have to change
something there?

Thanks
Volker

--
* Volker Wegert * http://www.volker-wegert.de/contact *
"If we knew what it was we were doing, it wouldn't be called research, now
would it?" (Albert Einstein)
Re: Issue with References when upgrading to 2.5 [message #500800 is a reply to message #500796] Sat, 28 November 2009 21:14 Go to previous message
Volker Wegert is currently offline Volker WegertFriend
Messages: 176
Registered: July 2009
Senior Member
Never mind. GMF didn't recognize its own old extensions and added new
extensions in addition to the existing ones. Somewhere along this way, EMF
decided to bail out. Once I cleaned up the mess, I was able to open my old
model files again.

Volker Wegert <mail@volker-wegert.de> writes:

> Hi all,
>
> I'm currently upgrading a project from EMF 2.3 to 2.5. The old model files
> contain references like this:
>
> <elements xsi:type="m:Foo" alias="MY_FOO" />
> <elements xsi:type="m:Bar" associatedFoo="MY_FOO" />
>
> That is, in my Ecore model, the attribute alias of class Foo has ID set to
> true, and all references are serialized using this attribute. I don't recall
> changing anything to get this behaviour, but this might not mean much - I
> haven't had to touch this model in almost two years.
>
> After upgrading - without changing either the ecore or the genmodel, but after
> regenerating of course - I can no longer open the old models. The error
> message is UnresolvedReferenceException: Unresolved Reference 'MY_FOO'. When I
> create a new model, I can see that the serialization has changed like this:
>
> <elements xsi:type="m:Foo" alias="MY_FOO" xmi:id="_xxxxx" />
> <elements xsi:type="m:Bar" associatedFoo="_xxxxx" xmi:id="_yyyyy" />
>
> Is it possible to get the old behaviour back? I should mention that I
> use a customized editor that I can't regenerate - perhaps I'll have to change
> something there?
>
> Thanks
> Volker
Previous Topic:Parameters with generic types.
Next Topic:[CDO] scalability of to-many references
Goto Forum:
  


Current Time: Wed Nov 13 08:07:45 GMT 2019

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

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

Back to the top