user3009344 user3009344 - 1 month ago 5
Java Question

Java instead of XTend in XText project

According to the book about XText and XTend:
"You can still generate Java stub classes by customizing the MWE2 workflow".

What do i change in my MWE2 file to make this happen?

Currently GenerateMyDsl.mwe2 looks like this: http://pastebin.com/3jp4B1X7

Thanks!

Answer

You can specify it on a per fragment level, or once in the config like this:

   // in MWE file
   component = XtextGenerator {
        configuration = {
            ...
            code = {
                preferXtendStubs = false
            }
        }
        ...
Comments