Issue with References when upgrading to 2.5 [message #500796] |
Sat, 28 November 2009 20:33 |
Volker Wegert Messages: 182 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 |
Volker Wegert Messages: 182 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
|
|
|
Powered by
FUDForum. Page generated in 0.03410 seconds