[ATL] problem with UML2 and profile application [message #66844] |
Wed, 28 November 2007 16:43 |
Eclipse User |
|
|
|
Originally posted by: tristan.faure.c-s.fr
Hi again !
i have a problem with the profiles i explain :
I have a transformation from a UML file to UML file.
I use a metamodel ecore linked to UML metamodel and myprofile.uml (as we
have seen in example
http://ssel.vub.ac.be/viewvc/UML2CaseStudies/uml2cs-transfor mations)
to do my transformation i use superimposition
transformation : uml copy
superimpose 1 : profile copy
superimpose 2 : my personnal rules
and i use the uml2 driver (i don't know if i use the RC2 ...)
but when i run my transformation the profile application elements of
Package in the output uml file are empty ...
i don't understand why the matched rules of profile application don't
work. The objects are here but the profile is not referenced ...
to resolve that i had to erase the matched rules for the profile
application in the uml2copy and to erase the lines "profileApplication <-
s.profileApplication" in the umlcopy file and i had to do in a do section
in package matched rule the statement :
for (p in s.getAppliedProfiles()){
t.applyProfile(p);
}
s is the source package and t the target package
i think my solution is not very clean and i hope you know how i can use
the match of profileapplication ?
|
|
|
|
|
|
Re: [ATL] problem with UML2 and profile application [message #68259 is a reply to message #68049] |
Wed, 05 December 2007 14:21 |
Eclipse User |
|
|
|
Originally posted by: tristan.faure.c-s.fr
Tristan FAURE schreef:
hi
if we use EMF the Stereotypes are not recognized
ProfileApplication should still work with the EMF driver. I'm trying to
discover if the EMF driver also has this problem, or if the problem is
specific to the UML driver.
if i omit my personnal rules the profile application is not copied too
Just for completeness: you do have "Allow inter-model references" enabled,
right?
--
Dennis
Yes i do
|
|
|
Powered by
FUDForum. Page generated in 0.03732 seconds