|
|
Re: QVTO post processing gmfgen example? [message #468046 is a reply to message #467931] |
Mon, 03 August 2009 18:32 |
Hauke Fuhrmann 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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04767 seconds