|
Re: [ATL] Getting value of an Attribute with reference to EAttribute metaclass [message #70088 is a reply to message #70048] |
Thu, 20 December 2007 22:28   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
José,
I guess you mean the "attribute" EReference of type "EAttribute" in the
diff.ecore model?
<eClassifiers xsi:type="ecore:EClass" name="AttributeChange"
eSuperTypes="#//DiffElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="attribute"
eType="ecore:EClass
platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//E Attribute "/>
This feature is an EReference and it references the EAttribute EClass of
the Ecore model itself. So this should properly be an EClass that can
be cast to EClass. Maybe there's more going on than meets the eye...
José Carlos Herrero wrote:
> Hi everyone,
>
> I am developing a model synchronizer. I am using EMF Compare and ATL.
> The problem I have is that EMF Compare metamodel has an attribute
> named "attribute", it is a reference to EAttribute metaclass. The ATL
> compiler raises ClassCastException because the type of attribute is
> EAttribute instead of EClass.
>
> Any ideas?
>
> Thanks.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02396 seconds