Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » QVTO post processing gmfgen example?
QVTO post processing gmfgen example? [message #444584] Fri, 31 July 2009 17:34 Go to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
Dear GMF folks,

I would like to customize my gmfgen model using a M2M transformation. I
understand I now can add a QVTO template in the diagram code gen wizard.

I'm a pure beginner with QVTO but can't spend too much time learning it
from scratch. Is there somewhere a simple example for such a QVTO
template for exactly this purpose which I could copy and adapt?

BTW: I'm just curious: Why are you using QVT and not Xtend?

Cheers,
Hauke
Re: QVTO post processing gmfgen example? [message #467931 is a reply to message #444584] Mon, 03 August 2009 12:11 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Hauke,

> I understand I now can add a QVTO template in the diagram code gen
QVTO transformation. Either pre-/post-reconcile or just use custom map->get
..qvto transformation instead of one coded in java/

> it from scratch. Is there somewhere a simple example for such a QVTO
> template for exactly this purpose which I could copy and adapt?
See /org.eclipse.gmf.tests/transforms/PrePostReconcileHook.qvto as an example
of pre-/post-reconcile transformations or
/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto if you need to use/customize
..qvto transformation instead of java.

> BTW: I'm just curious: Why are you using QVT and not Xtend?
QVT is a standard, well-supporded, documented, it was decided to use QVT
some time ago.

-----------------
Alex Shatalin
Re: QVTO post processing gmfgen example? [message #468046 is a reply to message #467931] Mon, 03 August 2009 18:32 Go to previous messageGo to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
Alex Shatalin schrieb:
> Hello Hauke,
>
>> I understand I now can add a QVTO template in the diagram code gen
> QVTO transformation. Either pre-/post-reconcile or just use custom
> map->get .qvto transformation instead of one coded in java/
>
>> it from scratch. Is there somewhere a simple example for such a QVTO
>> template for exactly this purpose which I could copy and adapt?
> See /org.eclipse.gmf.tests/transforms/PrePostReconcileHook.qvto as an
> example of pre-/post-reconcile transformations or
> /org.eclipse.gmf.bridge/transforms/Map2Gen.qvto if you need to
> use/customize .qvto transformation instead of java.

Ok, thanks, it finally worked.
I first added both pre-/post-reconcile transformations. It first did not
work and that without any error message. I had to change the file string
in the wizard to a proper URI with the right format. Seems that there
the string is not checked by the wizard. It just fails to call the
transformation silently (it only checks the string for the first
transformation field). Maybe a bug?

Additionally, the wizard seems to store the filenames for the next time
you call the Map-GmfGen Transformation. That's good. However, I had to
disable the pre-reconcile transformation and unchecked it in the wizard
and removed the file String. However, the next time I called the wizard,
both, the check and the filename were back again. Also a bug?

Cheers,
Hauke
Re: QVTO post processing gmfgen example? [message #468136 is a reply to message #468046] Tue, 04 August 2009 10:37 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Hauke,

> in the wizard to a proper URI with the right format. Seems that there
> the string is not checked by the wizard. It just fails to call the
> transformation silently (it only checks the string for the first
> transformation field). Maybe a bug?
Looks like. Can you please file a request for it?

> the wizard and removed the file String. However, the next time I
> called the wizard, both, the check and the filename were back again.
> Also a bug?
Yes.

-----------------
Alex Shatalin
Re: QVTO post processing gmfgen example? [message #468258 is a reply to message #467931] Tue, 04 August 2009 17:53 Go to previous messageGo to next message
Krzysztof Kowalczyk is currently offline Krzysztof KowalczykFriend
Messages: 113
Registered: July 2009
Senior Member
> QVT is a standard, well-supporded, documented, it was decided to use QVT
> some time ago.

Hi,
Can you point to some well-supported (with both operational and relation
working together) and documented implementation of QVT?

Do you plan to migrate from GMF Xpand to M2T Acceleo (MOF2Text)? Xpand
is not a standard, but Acceleo is.

Regards,
Krzysztof Kowalczyk
Re: QVTO post processing gmfgen example? [message #468365 is a reply to message #468258] Wed, 05 August 2009 09:46 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Krzysztof,

> Can you point to some well-supported (with both operational and
> relation
> working together) and documented implementation of QVT?
Well, everywhere I wrote QVT I mean QVTo (operational part) and I think org.eclipse.m2m/org.eclipse.m2m.qvt.oml
eclipse project is such an implementation. Concerning documentation – it’s
on OMG site.

> Do you plan to migrate from GMF Xpand to M2T Acceleo (MOF2Text)? Xpand
> is not a standard, but Acceleo is.
We will migrate to this m2t engine then all our use cases will be covered
there (last summer it was not possible).

-----------------
Alex Shatalin
Previous Topic:Empty properties tab
Next Topic:EMF-GMF tabbed.propertySections
Goto Forum:
  


Current Time: Tue Apr 23 11:02:30 GMT 2024

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

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

Back to the top