QVTo transformation with Xtext target models [message #1857003] |
Thu, 12 January 2023 09:02  |
Eclipse User |
|
|
|
Hi,
I am writing some QVTo transformations for (UML -> Xtext) instances.
The issue I am encountering is that the generated target models are generated as XMI and not serialised as Xtext files. I tried even just one single mapping rule, and the result is still the same (xmi).
Then I tried to erase what was generated in that file and write something conforming to the xtext grammar, and when I try to write something myself it works fine (conforms to the xtext grammar), but when I generate it, it does not. Any idea on what it might be, or at least how I can understand what might be going wrong? Thank you!
|
|
|
|
|
|
Re: QVTo transformation with Xtext target models [message #1857040 is a reply to message #1857038] |
Fri, 13 January 2023 15:15  |
Eclipse User |
|
|
|
Hi John
The file extensions are case-sensitive. Your workflow registers the mydsl extension, while your launch configuration produces a myDsl file. Changing the launch configuration to mydsl, I receive a target file including the string "test".
I assume that you got your setup right, so all the MyDSL projects must be running plugins inside a runtime Eclipse to enable the Xtext support (placing them as projects in your workspace won't be sufficient for serialization).
Kind regards
Christopher
|
|
|
Powered by
FUDForum. Page generated in 0.11050 seconds