Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348563 - [wizard] New Xtext project from existing ecore model doesn't create "modern" generator configuration
Summary: [wizard] New Xtext project from existing ecore model doesn't create "modern" ...
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: v2.9
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-07 09:45 EDT by Cedric Moonen CLA
Modified: 2017-10-31 10:59 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.