Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Problem with UML profiles and ATL 2006 - Message #2052 @yahoo list
Problem with UML profiles and ATL 2006 - Message #2052 @yahoo list [message #7621] Sat, 13 January 2007 10:45 Go to next message
Christophe Le Camus is currently offline Christophe Le CamusFriend
Messages: 8
Registered: July 2009
Junior Member
Hi all,

I encoutered some problems with the new version of the ATL 2006 for
applying
UML profile.

I have written a simple transformation (see "ApplyProfile.atl" attached
file)
to transform simple UML classes (see "IN_simple_model.uml2" attached file)
into UML classes with stereotypes and properties values (see the profile
defined "ExempleProfileJPB.profile.uml2")

I have successfully tested this transformation with the following
configuration :
-Eclipse 3.1.2 (installed from eclipse-SDK-3.1.2-win32.zip)
-EMF (installed from emf-sdo-xsd-SDK-2.1.2.zip)
-UML2(installed from uml2-SDK-1.1.1.zip )
-ADT (installed from adt20060630_Eclipse3_1(withMDR4ATL).zip)

I obtain the result given in the attached file "Result_Profile.uml2"

Since I would like to test the new features (especially the rule
inheritance) of the new compiler announced few days ago, I have built a new
complete ADT plugin from CVS repository following the installation
documentation
and created another Eclipse "configuration"(the only difference is the ATL
compiler)

When I run my transformation, everything seems to work, but only "seems" :
I
don't have any error message,
the result file is created (see attached file
"Result_Profile_ATL2006.uml2")
but when I try to open it with the UML2 Model Editor I don't see the
applied
stereotypes and I get an error message in the error log tab:
Package with uri
' http:///ExempleProfileJPB_0_yQsmYGKSEduZI41ZS40uVQ.profile.u ml2' not
found.
(platform:/resource/TestProfile/Result_Profile_ATL2006.uml2, 12, -1)

I have the same result if I put or not "-- @atlcompiler atl2006" on the
first line of my ATL transformation

If I import into this second Eclipse configuration the file obtained with
my
first working Eclipse configuration,
I can successfully visualize the stereotypes and their property values. I
deduce that the problem doesn't come from the UML2 part.

Due to my weak knowledge on the Eclipse platform and XMI in general, I'm
completely blocked.
I have compared the two different resulting files, but I'm not able to
understand why they are different.

My questions are :
1) Did I miss a step or where is my big mistake?
2) Did anybody encounter the same problem and, more interesting, solve it?
3) should I modify my transformation for the new compiler ?

I would appreciate any help.
Thanks in advance
jean-pierre
Re: Problem with UML profiles and ATL 2006 - Message #2052 @yahoo list [message #7643 is a reply to message #7621] Sat, 13 January 2007 11:14 Go to previous messageGo to next message
Christophe Le Camus is currently offline Christophe Le CamusFriend
Messages: 8
Registered: July 2009
Junior Member
Hello Jean Pierre,

Your problem is not relative to ATL.
Probably the workspaces you use are not the same.
In fact when you load your file with the UML editor, a stereotype is
searched at line 12 relatively to the path of the loaded file. Note the
../.. at line 12.
Perhaps in one of your workspaces this constraint is satisfied, but
certainly not in both.

Christophe
I will join a new comment soon.
Re: Problem with UML profiles and ATL 2006 - Message #2052 @yahoo list [message #10813 is a reply to message #7643] Sun, 21 January 2007 14:42 Go to previous message
Christophe Le Camus is currently offline Christophe Le CamusFriend
Messages: 8
Registered: July 2009
Junior Member
Hello Jean-Pierre,

More precision about you question.
Because I am working with a more recent package of UML2 ( v2.0.2) your
files are converted to the more recent format applying UML2.1 (as it is
possible).

Here is a part of the result file you obtain with your UML distribution.
<packageImport xsi:type="uml:ProfileApplication">
<eAnnotations source="attributes">
<details key="version" value="0"/>
</eAnnotations>
<importedPackage
href=" platform:/resource/TestProfile/ExempleProfileJPB.profile.uml 2#_yRX8DmKSEduZI41ZS40uVQ "/>
<importedProfile
href=" platform:/resource/TestProfile/ExempleProfileJPB.profile.uml 2#_yRX8DmKSEduZI41ZS40uVQ "/>
</packageImport>
Assuming that you have a project TestProfile in your workspace containing
the profile you design. You can check it opening your result file as text
file.

Once corrected using UML2.1 grammar, this part becomes :
<profileApplication>
<eAnnotations source="http://www.eclipse.org/uml2/2.0.0/UML">
<references
href=" platform:/resource/testATLTransfo/testProfile2/ExempleProfil eJPB.profile.uml#_yRX8DmKSEduZI41ZS40uVQ "/>
</eAnnotations>
<appliedProfile
href=" platform:/resource/testATLTransfo/testProfile2/ExempleProfil eJPB.profile.uml#_yRX8DmKSEduZI41ZS40uVQ "/>
</profileApplication>

... Assuming I have a 'testATLTransfo' project containing a testProfile2
folder.

Profiles and all packages can then be loaded.
Perhaps you can see then your profile applied.

Christophe
Previous Topic:Re: constrain a node to be the only root in a graph
Next Topic:Problem with clause "using" in called rule
Goto Forum:
  


Current Time: Wed Feb 05 11:47:03 GMT 2025

Powered by FUDForum. Page generated in 0.03115 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top