ATL AllInstances Problem [message #105650] |
Tue, 26 May 2009 12:10  |
Eclipse User |
|
|
|
Hi,
I have a problem when I use allInstances on a classifier in an ATL
transformation module. I am developing a transformation between the
Architecture and Analysis Design Language (AADL) metamodel and a custom
metamodel. I want to use allInstances on the AADL PropertyAssociation
metamodel element.
The AADL model is made of an AADL instance model file + the AADL
specifications declared in other files. The problem is that allInstances
only returns the PropertyAssociation elements that are declared in the
input model instance file and does not see the associations declared in
the other files.
I could fix this problem by modifying
ASMEMFModel.addAllReferencedExtents() in the emf4atl drivers plugin, but I
am wondering if there is a simpler solution. In fact,
addAllReferencedExtents() only consider the elements in the resource that
are of EClass type. I could fix the problem by looking at the EClass of
all EObject contained in the resource.
Thanks.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03461 seconds