| [News.eclipse.technology.gmf] Re: shortcuts and their update functions |
Hi Alex,
sorry for the late reply.
For now we have a number of problems with synchronization of a shortcuts.
Currently GMF allows to shortcut only top-level diagram elements from another diagrams (two elements in your example), so âdiagramâ element was visualized as a shortcut just as a side-effect of your model structure. I suppose that diagram element could be represented as a top-level nod in the same time (you have some nodemapping with the suitable EClass specified).Situation 1: Model 1 contains two elements. Model 2 references a top element (the domain model element), which is a container for both elements, via a shortcut. Now, the
What you will see if youâll open Model1 in EMF generated editor? What type of element, where?shortcut is deleted in Model 2. A third element is drawn and created in Model 1.
better, when I save Model 2 with this shortcut, its current state is also propagated to Model 1. Means, the model file contains just two
It is possible to change shortcutted element now. For example, on ECore diagram you can add a shortcut to the class from another package and then add some attribute into this class â newly added attribute will be stored in the model, so should appear on original diagram.
Try reopen the diagram. Generated code is not listening for external changes.third one was deleted), but on the diagram, all three elements are still drawn.
Best regards, Mathias