Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] transforming profile-based models revisited
[QVTO] transforming profile-based models revisited [message #104339] Fri, 01 May 2009 23:29 Go to next message
Alexandre Torres is currently offline Alexandre TorresFriend
Messages: 139
Registered: July 2009
Senior Member
Hi.
I was following the instructions at
http://dev.eclipse.org/newslists/news.eclipse.modeling.m2m/m sg02492.html
and
http://dev.eclipse.org/newslists/news.eclipse.modeling.mdt.u ml2/msg00817.html

trying to make my qvto transformation recognize models with a statically
defined profile. If you follow that instructions, the transformation will
not show erros, but the resulting profile with the application of ecore
profile will be unusable.

So I ended up with two useless options:
1) I have a profile without ecore application. No emf generated. Can't use
static reference on QVTO. But I can apply at my models
2) I have a profile with ecore application. EMF project generated. I can
write QVTO with static references. But I cannot apply the profile to any
uml.

Why is this so hard? Why ?
It takes ages to generate all this (useless!it should be automatic. The
user just wants to write "thats my profile", not to generate all this
stuff) EMF classes to NOT work in the end.
That's frustrating.
I must be doing something wrong :)
Re: [QVTO] transforming profile-based models revisited [message #104358 is a reply to message #104339] Sat, 02 May 2009 15:03 Go to previous message
Alexandre Torres is currently offline Alexandre TorresFriend
Messages: 139
Registered: July 2009
Senior Member
It worked after a lot of clean up. Important things to note are:
(So, it was my fault at the end)
1. The org.eclipse.uml2.uml.generated_package must point to the object id
of the profile (#_blablablah)
http://dev.eclipse.org/newslists/news.eclipse.modeling.mdt.u ml2/msg00819.html
2. Every time I run define on my profile after I apply the ecore, it
stoped working.
3. Keep a copy of the original profile before applying ecore. Use this
copy to make changes, re-define, and them reapply ecore, regenerate
genmodel and model. 4. It's a painfull process, better keep backup of all
stages. Try with a small profile first.
5. The profile must be 100% out of errors. If the genmodel points errors,
correct them in the original profile, redefine, copy, reapply ecore,
regenerate all.
6. Your old model will need manual XMI cleanup to run with the static
profile. It looks like it does not support very well the versioning system
of the dynamyc profiles. I had to remove several references to old
definitions before it works.
By the way, one of those days I will need a tool to help me out in this
clean up :)

It took +8 hours for me to set up my old profile. A good old #include
would be much more easier.
Previous Topic:[ATL] how to judge an operation called by a call event
Next Topic:[ATL] Manipulating collections
Goto Forum:
  


Current Time: Fri Apr 19 21:20:55 GMT 2024

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

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

Back to the top