Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312583 - [Wizard] Declare launch shortcut for new DSL-filetype
Summary: [Wizard] Declare launch shortcut for new DSL-filetype
Status: CLOSED WONTFIX
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-12 07:05 EDT by Luc JKr CLA
Modified: 2017-09-19 15:51 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luc JKr CLA 2010-05-12 07:05:53 EDT
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
Comment 1 Jan Koehnlein CLA 2010-05-12 07:47:24 EDT
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.
Comment 2 Karsten Thoms CLA 2017-09-19 15:51:27 EDT
Closing bug which were set to RESOLVED before Eclipse Neon.0.