[ATL] UML model with UML profile as input [message #517581] |
Mon, 01 March 2010 11:47 |
Eclipse User |
|
|
|
Originally posted by: MartinFagereng.Johansen.sintef.no
Hi
I created an ATL transformation in 2008 which transformed a UML model with
an applied profile into a custom ecore meta model. This worked great for
this setup:
* Eclipse 3.4 (Ganymede)
* ATL 2.0.0.v200806101117
* EMF Ecore 2.4.0.v200806091234
but if fails for the newest versions of ATL, Eclipse and EMF. The setup in
the ATL file is as follows:
create OUT : AbstractWatch from IN2:uml;
in the lauch file:
<mapEntry key="IN2" value="/UMLWatch/UMLWatch.uml"/>
<mapEntry key="AbstractWatch" value="/UMLWatch/abstractWatch.ecore"/>
<mapEntry key="OUT" value="/UMLWatch/Watch.abstractwatch"/>
<mapEntry key="uml"
value="uri:http:///schemas/UMLWatch/_09H3UF7ZEd2X-sPUdg4L5A/0"/>
How do I make this work for the newest versions of ATL?
How should I work with profiled UML models and ATL?
Thanks and regards,
Martin
|
|
|
Re: [ATL] UML model with UML profile as input [message #518492 is a reply to message #517581] |
Thu, 04 March 2010 09:29 |
Eclipse User |
|
|
|
Originally posted by: MartinFagereng.Johansen.sintef.no
I fixed this by creating the following ecore file and use it as metamodel
for the ATL transformation. Why this works is beyond me, but maybe someone
here can explain.
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="UMLAndWatch"
nsURI="http://UMLAndWatch" nsPrefix="UMLAndWatch">
<eClassifiers xsi:type="ecore:EClass" name="Import" abstract="true"
eSuperTypes="http://www.eclipse.org/uml2/3.0.0/UML#//Element
UMLWatch.profile.uml#_1AetUV7ZEd2X-sPUdg4L5A"/>
</ecore:EPackage>
"Martin Johansen" <MartinFagereng.Johansen@sintef.no> wrote in message
news:hmg9h6$5ph$1@build.eclipse.org...
> Hi
>
> I created an ATL transformation in 2008 which transformed a UML model with
> an applied profile into a custom ecore meta model. This worked great for
> this setup:
>
> * Eclipse 3.4 (Ganymede)
> * ATL 2.0.0.v200806101117
> * EMF Ecore 2.4.0.v200806091234
>
> but if fails for the newest versions of ATL, Eclipse and EMF. The setup in
> the ATL file is as follows:
>
> create OUT : AbstractWatch from IN2:uml;
>
> in the lauch file:
>
> <mapEntry key="IN2" value="/UMLWatch/UMLWatch.uml"/>
> <mapEntry key="AbstractWatch" value="/UMLWatch/abstractWatch.ecore"/>
> <mapEntry key="OUT" value="/UMLWatch/Watch.abstractwatch"/>
> <mapEntry key="uml"
> value="uri:http:///schemas/UMLWatch/_09H3UF7ZEd2X-sPUdg4L5A/0"/>
>
> How do I make this work for the newest versions of ATL?
>
> How should I work with profiled UML models and ATL?
>
> Thanks and regards,
> Martin
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03337 seconds