Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » why some Ecore EReferences are now changeable=false ?
why some Ecore EReferences are now changeable=false ? [message #430565] Wed, 27 May 2009 14:31 Go to next message
Didier Vojtisek is currently offline Didier VojtisekFriend
Messages: 31
Registered: July 2009
Member
Hi,
I've recently reopen some old transformations that was transforming
ecore models.
They where working fine with previous version of EMF, but doesn't work
with EMF 2.4.
After an analysis, it appears that some EReferences in Ecore.ecore are
not changeable anymore so the transformation fails to set these values...
for example, I cannot directly set the ePackage of an EClassifier, in
order to do that I have to reverse the logic and change my
transformation in order to add the EClassifier in EPackage.eClassifiers

This is weird since these EReference are opposite and are finally
modified ...

I really wonder why this have been changed in Ecore metamodel ?

best regard
Didier
Re: why some Ecore EReferences are now changeable=false ? [message #430571 is a reply to message #430565] Wed, 27 May 2009 15:14 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Didier,

Comments below.

Didier Vojtisek wrote:
> Hi,
> I've recently reopen some old transformations that was transforming
> ecore models.
What kinds of transformations?
> They where working fine with previous version of EMF, but doesn't work
> with EMF 2.4.
> After an analysis, it appears that some EReferences in Ecore.ecore are
> not changeable anymore so the transformation fails to set these values...
> for example, I cannot directly set the ePackage of an EClassifier, in
> order to do that I have to reverse the logic and change my
> transformation in order to add the EClassifier in EPackage.eClassifiers
If I look in the history of EClassifierImpl, there's never been an
setEPackage method. I think there was a bug in the generator that
didn't properly preserve the Ecore.ecore's EClassifier.ePackage
feature's changeable=false setting (it's always been this way in the CVS
history) so the EcorePackage.eINSTANCE's setting was inconsistent.
>
> This is weird since these EReference are opposite and are finally
> modified ...
>
> I really wonder why this have been changed in Ecore metamodel ?
A fix to a generator bug. Sorry...
>
> best regard
> Didier


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Cannot cast from Boolean to InternalEObject
Next Topic:Override behavior of KEEP_DEFAULT_CONTENT
Goto Forum:
  


Current Time: Fri Apr 26 03:44:21 GMT 2024

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

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

Back to the top