|Copying GMF projects [message #729440]
||Mon, 26 September 2011 08:03
| Iban Ayestaran
Registered: September 2011
I am having some problems when I try to copy a GMF project. By now, I have done a project (v1.0) which works fine, but I need to improve it. To do so, I wanted to copy the existing project into another one, and change its name. Is there an easy way to do so?
By now, I made the following steps, but the graphical tool it generates becames unusable, because it is forbidden to draw anything!:
1. Create a new empty project, named "Project_v1.1".
2. Copy-paste the .ecore, .ecore_diagram, .gmftool and .gmfgraph files into the new project.
3. Change their names into "Project_v1.1.ecore", "Project_v1.1.ecore_diagram" and so on.
4. Open "Project_v1.1.ecore", and in the properties of the package, change the values into "Project_v1_1" and "http://Project_v1_1".
5. Open the "Project_v1.1.ecore_diagram" as text and replace all the "Project_v1.0" strings by "Project_v1.1". When I save that, I can again see the diagram with the diagram editor.
6. Generate the .genmodel, and from there, generate the model code, the edit code and the editor code.
7. In the GMF dashboard, select the .ecore, .genmodel, .gmftool and .gmfgraph files, and derive the .gmfmap from them.
8. Set the .gmfmap properties exactly as they where in the v1.0 project.
9. Generate the .gmfgen.
10. Generate the diagram editor.
I wouldn't care to make all those steps all the time if it worked, but the problem is that if I run the .diagram project, it generates a project where I can draw nothing! Is there an easier way, or just a way where the new project works??
Thanks in advance!
Powered by FUDForum
. Page generated in 0.02099 seconds