Community
Participate
Working Groups
- Define diagram editor (gmf models) - Generate diagram editor plugin - Add a new label to some intermediate node - Regenerate diagram editor plugin => visual ids of other labels (below the new one in sample ecore editor) are incremented so respective class names are changed (they contain visual id); as a result there are many changes that are not semantically related to the addition of the new label
This is not a problem of labels - this is a generic problem of transformation from .gmfmap to .gmfgen model. To allow future changes of existing .gmfmap models and safe code regeneration GMF should take into account existing .gmfgen model while transforming .gmfmap to .gmfgen (preserve existing visualIDs of the .gmfgen model element). I.e. GMF should support the following usecases: - new mapping was added to .gmfmap model and transformation from .gmfmap to .gmfgen executed -> new nodes should be added to existing .gmfgen models, but all the rest of the structure should not be changed (visualIDs of existing elements should not change the value). - some mapping(s) was removed from .gmfmap model and transformation from .gmfmap to .gmfgen executed -> obsolete nodes should be removed from .gmfgen model, but visualIDs of an existing .gmfgen model elements should not be changed. In other words, GMF should support "merging" of the changes from .gmfmap model to .gmfgen without modification of visualIDs. One of the reasons was clearly described in an original description another is – GMF should be able to open diagram file created using previous version of the generated diagramming plugin (visualIDs are currently stored in diagram file).
oeg.bridge.trace plugin created. Additional .trace file will be created while transforming .gmfmap to .gmfgen model. This file will store visual id and OCL queries which will be used to assign correct visual id to genmodel elements on next genmodel regeneration. User could modify default ocl queries to tune trace file for specific changes in mappinf model.
[target cleanup] 1.0 RC4 was the original target milestone for this bug
[GMF Restructure] Bug 319140 : product GMF and component Templates was the original product and component for this bug