Community
Participate
Working Groups
Currently generated diargamming code works only with the model code generated by EMF. Would be nice to have a possibility to generate code working with dynamic EMF feature. Use case: 1. Create .ecore domain meta-model (code was not generated for this .ecore model) 2. Create .gmfmap model 3. Transform .gmfmap-> .gmfgen 4. Generate code Generated code should be able to load specified .ecore meta-model, create new instance of corresponding model using dynamic EMF/load it from the specified model file, create new diagram feasible to visualise this model. I think, there should be an option in .gmfgen model "Use dynamic EMF" and different code should be generated in these two different situations.
"Dynamic EMF" is the term EMF's Developer Guide book uses to refer to the provided implementation of reflective API. Though 'Dynamic' is often percieved as something that is being contantly modified. Not sure 'dynamic' is most exact term here, as the use-case is about the frozen meta-model, one that can't be changed in run-time. Perhaps, 'codeless model' term would better describe the intention - don't generate the code, use EMF's reflective API to access meta-model.
Updated target milestone
Since GMF 2.0 M6 was released April 5, 2007, doing a bulk move of all open Bugzillas currently on M6 to 2.0 M7. Owners will need to access if the issue really is targetted for 2.0 M7.
Bulk update, descoping from 2.0
Basic functionality to work with dynamic models was delivered. Few configuration issues as well as tests pending.
Note, dynamic meta-models may need to get registered using dynamic_package extension point from EMF <extension point="org.eclipse.emf.ecore.dynamic_package" > <resource uri="http://example.org/Example" location="model/Example.ecore#/"/> </extension>
Tests added into RuntimeCompilationTest.
[GMF Restructure] Bug 319140 : product GMF and component Generation was the original product and component for this bug