|
At the end of Chapter 1, Implementing a DSL, we saw how to run the Xtext generator; you should follow the same steps, but instead of right-clicking on the .xtext file and navigating to Run As | Generate Xtext Artifacts, we right-click on the .mwe2 file (in our example it is GenerateEntities.mwe2) and navigate to Run As | MWE2 Workflow. (Remember to accept the request for downloading the ANTLR generator, as explained in Chapter 1, Implementing a DSL).
Before you start the new Eclipse instance, you must make sure that the launch configuration has enough PermGen size, otherwise you will experience "out of memory" errors.
You need to specify the following value as VM arguments in your launch configuration: -XX:MaxPermSize=256m.
You can also simply use the launch configuration that Xtext created for you in your org.example.entities project in the directory .launch; you might not be able to see that directory, since by default the workbench hides resources starting with a dot, so make sure to remove that filter in your workspace preferences. Alternatively, you can right-click on that project and navigate to Run As | Run Configurations...; in the dialog, you can see Launch Runtime Eclipse under Eclipse Application; select it and click on Run. |
|