Community
Participate
Working Groups
I have created an ecore model "var.ecore" and loaded the "Ecore.ecore" model as a resource into that model. Beside others the top-level "model" domain element references to elements of type "EObject". Now in my GMFMAP I have created a Top Node Mapping with a Node Mapping child. The "element" attribute of this Node mapping is set to "EObject". Now if I select "create generator model..." the wizard asks me "Need genmodel to cover all referenced domain packages (2)". If I select my "var.genmodel" model (which references the Ecore model) the GMFGEN gets generated and I can generate the diagram code. But when using the generated editor I can no longer delete any of the elements in the diagram. If I select an element in the diagram and press delete, the element is correctly removed from the model-file but remains within the diagram. Furthermore, if the element I wanted to delete has e.g. a label, after pressing delete the label's text is changed to "[]" (null reference?). If I reopen the diagram, the node is still there. But if I delete the diagram file and re-initialize it from the model file (where the element is already correctly deleted), the diagram is correctly displayed. So perhaps this might be an update problem with the diagram file? See Thread news://news.eclipse.org:119/e8d8ll$ks1$1@utils.eclipse.org
My fault. I accidentally mapped the semantical element of a graphical node to an interface instead to a class which could be instantiated. The generator itself produced no error, but the generated editor showed the described behaviour. Perhaps interfaces and abstract classes should be excluded from the list "Domain meta information -> Element" in the GMFMAP.
Can you please submitt a separate request for correcting EMF editor for .gmfmap model + adding corresponding rules to the validation process?
I have submitted enhancement request #150117 <https://bugs.eclipse.org/bugs/show_bug.cgi?id=150117>
[GMF Restructure] Bug 319140 : product GMF and component Generation was the original product and component for this bug