user3009344 user3009344 - 9 months ago 51
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:


Answer Source

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