Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[ATL] Multiple metamodel for the model "OUT"
https://www.eclipse.org/forums/index.php/mv/msg/22815/73478/#msg_73478
Originally posted by: Jean.jnapps.com
Hi,
We're trying to use multiple Metamodel for the Model "OUT", which all are
registered in Eclipse. In a rule, we try to access a refenrenced meta
element from another meatamodel. When running the module it doesn't
recognize that meta element.
Is it a limitation? Is there a way to reference multiple metamodel for the
model "OUT" in one module?
Regards,
Jean]]>2008-01-27T10:40:33-00:00Re: [ATL] Multiple metamodel for the model "OUT"
https://www.eclipse.org/forums/index.php/mv/msg/22815/73535/#msg_73535
--------------070200090905080202080709
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Hello,
Neveux a ]]>William Piers2008-01-28T11:03:13-00:00Re: [ATL] Multiple metamodel for the model "OUT"
https://www.eclipse.org/forums/index.php/mv/msg/22815/73859/#msg_73859
Originally posted by: J.Neveux.netfective.com
Hi William,
Here's more precision : we're planning to use refences between meta models;
a meta model could reference objects from another meta model.
For example, we have the following set up of meta models :
staticClass.ecore & dynamicBehaviour.ecore. In dynamicBehaviour.ecore (which
opens fine within Eclipse's ecore viewer) there's a link pointing an element
in staticClass.ecore :
create OUT : bluage from IN : UML2;
-->CallOperationAction
rule UMLCallOperationAction2BluageCallOperationAction{
from s : UML2!CallOperationAction (s.oclIsTypeOf(UML2!CallOperationAction))
to out : bluage!CallOperationAction (
name <- s.name
,inPartition <- s.inPartition->first()--.debug('test sur
inPartition' + s.operation.toString())
,operation<-s.operation
)
}
rule UMLOperation2BluageOperation {
from o : UML2!Operation (o.oclIsTypeOf(UML2!Operation))
to out : bluage!Operation (
name <- o.name
,parameters <- o.ownedParameter
,stereotype <- o.getStereotype()
)
}
The error: "GRAVE: no type named 'Operation' in metamodel 'bluage'", which I
understand, but I have no clue on specifying a second meta model for the a
single model out.
"William Piers" <william.piers@obeo.fr> a ]]>2008-01-30T11:08:51-00:00Re: [ATL] Multiple metamodel for the model "OUT"
https://www.eclipse.org/forums/index.php/mv/msg/22815/73965/#msg_73965
--------------030004020208020202020704
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Hello,
In fact I ever did this kind of transformation and the emf model handler
of ATL automatically loads metamodels extensions.
You simply need, in the launch configuration, to refer to the metamodel
which needs the other one, for the "bluage" naming. In your case,
"dynamicBehaviour.ecore".
If you still have errors you also could try to specify the namespace of
the element in the type declaration, like :
UML"uml::Package" instead of UML!Package
Best regards,
William
Neveux Jean a ]]>William Piers2008-01-30T17:22:03-00:00Re: [ATL] Multiple metamodel for the model "OUT"
https://www.eclipse.org/forums/index.php/mv/msg/22815/74076/#msg_74076
Originally posted by: J.Neveux.netfective.com
William,
I've looked into that solution and it appears to be an EMF problem rather
than ATL. We've also looked into setting up multiple model "OUT" and that
worked well. The links are recreated between transformed model. So finally,
we're going to merge our meta models and keep one big meta model.