| Summary: | [Wizard] Declare launch shortcut for new DSL-filetype | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Luc JKr <lucjkr> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | jan |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows Vista | ||
| Whiteboard: | |||
The launch configuration you suggest sounds rather specific to your usecase. We'd rather not implement such a feature in the generic Xtext codebase. Nevertheless, it should not be to difficult to implement. With the new builder infrastructure, you can register a build participant that automatically "compiles" (generates code) from a model file when it is saved. Have a look at the domainmodel example to see how this can be done. Closing bug which were set to RESOLVED before Eclipse Neon.0. |
Build Identifier: 20090621-0832 The typical DSL use-case is using many DSL files in the Java project and generating Java classes from DSL files. In this use-case, it would be very convenient to have launch shortcut associated with DSL-file extension which generates code corresponding to selected model file. Please enhance Xtext Project wizard in the following way: When Xtext creates a code generator which transforms the DSL scripts (which means that the option 'Create generator project' is enabled), it should also declare new launch shortcut for DSL-file extension. The shortcut action should run the generator workflow with the selected DSL-file as 'model' parameter. By 'model' parameter I mean the 'uri' attribute of MweReader component, as shown below: <component class="org.eclipse.xtext.MweReader" uri="${model}"> Reproducible: Always