[ATL] setting __xmiID__ values doesn't work? [message #532144] |
Fri, 07 May 2010 10:35 |
Eclipse User |
|
|
|
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl
Hello,
in my ATL transformation, I have something like this:
<code>
rule EAttribute {
from s : ecore!EAttribute
to t : ecore!EAttribute(
__xmiID__ <- s.__xmiID__,
name <- s.name,
(...)
)
}
</code>
When I run this transformation on an Ecore, I get:
Manual setting of <unnamed>:EAttribute XMI ID.
org.eclipse.m2m.atl.engine.emfvm.VMException: Feature __xmiID__ does not
exist on EAttribute
at __applyEAttribute(ecorecopy.atl[10:17-10:54])
local variables: self=thisModule,
link=org.eclipse.m2m.atl.engine.emfvm.lib.TransientLink@1b5e91a,
s=IN!name:ecore!EAttribute, t=OUT!<unnamed>:ecore!EAttribute
at __exec__(ecorecopy.atl)
local variables: self=thisModule,
e=org.eclipse.m2m.atl.engine.emfvm.lib.TransientLink@1b5e91a
at main(ecorecopy.atl)
local variables: self=thisModule
The first line is orange (warning), the remainder is red (error).
Does anyone know how to set xmi:id values in an ATL transformation?
I demonstrated it here using an ecore to ecore transformation, but I
would like to do this for other metamodels. Does it require special
settings in for instance an ecore or genmodel?
Any help would be appreciated,
Dennis
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03142 seconds