This tutorial is an EMF tutorial but to go faster it takes the output of the GMF tutorial 2 as an input (in order not to have to build a new ecore model).
It shows how to persist your date in several ecore files instead of one.
This can be very interesting at least in two situations :
This tutorial is based on the model built in the second GMF tutorial wich is availabale through :
This tutorial has been built with :
Filesystem.folders : Folderassociation (sub node of the
Filesystem.files : File
Folder.folders : Folder
Folder.files : File
Filesystemand in the properties view set the
Folder.folders : Folderassociation (sub node of the
true(in order to have a context menu allowing to create a child node in the generated EMF editor)
Folder.files : Filenode
Gen Editor Generator jfb.examples.gmf.filesystem.diagramand in the properties view set the
Same File For Diagram And Modelto
Transformlabel of the dashboard
Generate diagram editorlabel in the dashboard.
Filesystem modelfile named
parent.filesystem(not a diagram file)
Filesystemmodel object and click
Filesystemnode and select
New Child → Folder
Foldernode that has just been created, right click and select
Browse Workspace, select your project and type
child.filesystem, modify your folder (for example choose a name in the properties view for that folder, save the file and look at the
parent.filesystemfile ; it may have been updated automatically !
|Cick ||Select a file||The result…|
parent.filesystemfile and selecting
Initialize filesystem_diagram diagram fileand every modification in the diagram editor will be propagated to the two ecore files
I hope that this material will be helpful for you. If you want to support it, your help is welcome :