[ATL] setting __xmiID__ values doesn't work? [message #532144] |
Fri, 07 May 2010 06: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
|
|
|
|
|
|
|
Re: [ATL] setting __xmiID__ values doesn't work? [message #537205 is a reply to message #537171] |
Tue, 01 June 2010 11:18  |
Eclipse User |
|
|
|
The problem is that I cannot make my transformation work with the regular VM,
My input metadata called cwm.ext.ecore is refering to another ecore file called cwm.ecore.
And I do not manage to register the second ecore (cwm) neither from the Eclipse launcher nor from the java APIs.
I have managed to register it with the EMF VM APIs but not with the Regular one.
The ATL API does not manage to load my model because it cannot acces to the refered metamodel.
I am stuck !!!!
|
|
|
Powered by
FUDForum. Page generated in 0.05797 seconds