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

Bug 441708

Summary: Switch to EMF 2.10 for the metamodel generation
Product: [Modeling] Sirius Reporter: Pierre-Charles David <pierre-charles.david>
Component: CoreAssignee: Florian Barbin <florian.barbin>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: esteban.dugueperoux, florian.barbin
Version: 1.0.0Keywords: triaged
Target Milestone: 2.0.0   
Hardware: All   
OS: All   
Whiteboard:

Description Pierre-Charles David CLA 2014-08-13 11:08:12 EDT
Currently we use the generators from EMF 2.9 (Kepler) to generate the Java code from our genmodel. Mixing different versions of EMF between the one installed in the IDE and the one in the target platform can cause some issues, so we should switch to EMF 2.10 (Luna) as the reference version to use for the code generation.

This requires some synchronization between contributors to make sure everybody is aware of the change and updates its Eclipse installation.

We'll do a separate "no-op" commit with no change in the metamodels but a re-generation using EMF 2.10 to isolate this from actual changes in the metamodels.

This might also be a good time to upgrade the "Runtime Version" used in the genmodels. For historical reasons they are still set to "2.3", meaning the code generated is compatible with EMF 2.3, and thus can not take advantage of new and improved APIs introduced in more recent versions of EMF. We should be able to safely update to 2.8 as Juno is the oldest Eclipse release we are compatible with.
Comment 1 Florian Barbin CLA 2014-08-20 11:40:32 EDT
Review: https://git.eclipse.org/r/#/c/31980/
Comment 2 Florian Barbin CLA 2014-08-21 11:51:08 EDT
Review merged on master.

About the runtime version, update to 2.8 will also require to update the source code since I detected some compilation errors by trying in a second step. The commit http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=a2631f9c041790f716d5b8c4e3932c79e9675b41 just concerns the EMF 2.10 meta-model generation.
Comment 3 Florian Barbin CLA 2014-08-29 03:23:26 EDT
Resolved
Comment 4 Pierre-Charles David CLA 2014-10-27 06:52:44 EDT
Available in Sirius 2.0.0.