|
Re: Generating a new ecore model + diagram from existing one [message #1065016 is a reply to message #1064903] |
Sun, 23 June 2013 12:32 |
|
Hi Julian,
Q1: Rather confusingly, there are actually two Ecore diagram editors in Eclipse. I suspect that when you right-clicked your copy you selected "Initialize ecore_diagram diagram file" instead of "Initialize Ecore Diagram File...", which then created a diagram compatible with the 2nd Ecore diagram editor.
Q2: Suppose you have foo.ecore and foo.ecorediag and you want to duplicate them to bar.ecore and bar.ecorediag. You'll need to follow the steps below:
- Copy foo.ecore -> bar.ecore
- Copy foo.ecorediag -> bar.ecorediag
- Open bar.ecorediag with a text editor and replace href="foo.ecore#..." -> href="bar.ecore#..."
- Save bar.ecorediag
- Open bar.ecore and change the nsURI of its root package (each Ecore metamodel should have a unique nsURI)
Regards,
Dimitris
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03219 seconds