|Re: Extending an editor [message #1722624 is a reply to message #1722351]
||Sun, 07 February 2016 08:55
| Ángel Moreno
Registered: November 2013
Hi Davide, |
You must redefine all the models implied in the generation of the GMF diagram that u have. This implies modify, in first place the ecore metamodel... adding to this, the elements that give support to the new nodes (EClass) or links (Eclass or EReferences) that you want to add... In second place, you must modify the gmfgraph model to add the graphic information for the elements created in the ecore (adding Figure Descriptors with the graphic info and creating Nodes, Connections, Diagram Labels and Compartments) and later add new tools (Creation tools) to the gmftool...
With this modifications in ecore, gmfgraph and gmftool... you must stablish the relationships (Top References, Child References or Link Mappings) between the ecore elements, the graphic elements and the tools in the gmfmap, stablishing what its a node or link, and stablishing the graphic form of the gmfgraph and the tool of the gmftool for the gmfmap.
To finish you must regenerage the gmfgen, reload the genmodel, regenerate the model and edit code from the genmodel, and regenerate the diagram code from the GMF Dashboard...Probably you must modify the underlined Java Code, because between regenerations you lost custom Java Code....
Researcher @ Kybele Research Group
Rey Juan Carlos University, Madrid, Spain
[Updated on: Sun, 07 February 2016 12:37]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02089 seconds