Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348563

Summary: [wizard] New Xtext project from existing ecore model doesn't create "modern" generator configuration
Product: [Modeling] TMF Reporter: Cedric Moonen <cedric_moonen>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: moritz.eysholdt, st.oehme
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: v2.9

Description Cedric Moonen CLA 2011-06-07 09:45:37 EDT
Build Identifier: 20110602-0820

If you create a new Xtext project which generates the ecore model, some elements for the code generator are automatically created (xtend file, extension in the plugin.xml, ...). In that case, when running the plugins in a new workbench, you are able to generate the code from a concrete syntax instance (happens automatically while saving the file).

If the Xtext project is created from an existing ecore model, nothing is created for you: no xtend file, no plugins extensions, ... In that case when running the plugins in a new workbench, code generation never occurs when saving the concrete syntax instance.

This seems to be because all the xtext2/xtend2 features don't seem to be included when you create a project from an existing ecore model (e.g. also the rename refactoring option). 

Is this on the TODO list for the indigo release or is it just a bug ?

Reproducible: Always
Comment 1 Sven Efftinge CLA 2012-11-21 06:05:00 EST
The "project from existing ecore" wizard should generate an up-to-date mwe2 file.
Comment 2 Stefan Oehme CLA 2015-10-29 07:00:28 EDT
Fixed in 2.9
Comment 3 Eclipse Webmaster CLA 2017-10-31 10:48:31 EDT
Requested via bug 522520.

-M.
Comment 4 Eclipse Webmaster CLA 2017-10-31 10:59:34 EDT
Requested via bug 522520.

-M.