Providing a project wizard
It is nice to provide the clients of your DSL a
project wizard that creates an Eclipse project, sets its source folders, for example, src
and src-gen
and adds the needed dependencies.
Xtext can generate such a project wizard for you, in the .ui
project, if you enable this fragment in the MWE2 file in the StandardLanguage
section:
newProjectWizardForEclipse = {
generate = true
}
After running the MWE2 workflow, you must merge manually the plugin.xml
and the plugin.xml_gen
.
The generated project wizard will be available in the Eclipse New Project dialog, in the Xtext category.
The above MWE2 fragment will generate the classes for the wizard in the src-gen
folder of the .ui
project. Moreover, in the src
folder, it will generate ...
Get Implementing Domain-Specific Languages with Xtext and Xtend - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.