Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCreating Diagrams for a subset of objects in the Ecore Model
https://www.eclipse.org/forums/index.php/mv/msg/389978/929535/#msg_929535
I have an Ecore file which has more than 100 EClasses. Now, I want to create a diagram only with a subset of objects(Max 5). Just wanted to know what would be the easiest way to do that.
The problem is, whenever you create a Diagram, in the dialog, you can only select the EPackage and not a list of EClasses under the package, and so it creates the diagram with all the EClasses in that package.
I don't want to generate the complete diagram and filter the rest of the objects .
Thanks,
Ranjith
]]>Ranjith Chungath2012-10-01T14:48:49-00:00Re: Creating Diagrams for a subset of objects in the Ecore Model
https://www.eclipse.org/forums/index.php/mv/msg/389978/949197/#msg_949197
You can have multiple diagrams in a single ecorediag. For some reason diagrams are a bit hidden in the outline so they are hard to miss- they are under the top-level package and after all the elements.
You can add drag elements from the outline onto the canvas.
So to create a diagram with just a few elements I would do the following:
"Initialize Ecore Diagram" from the ecore normally
Then select the package in the outline and choose "New Digram"
Then select the elements you want and drag them on to the diagram
I do the above steps all the time when exploring the model with "Navigate > Restore Related Elements" to explore a subset of elements.
d
]]>David Rees2012-10-18T19:56:59-00:00Re: Creating Diagrams for a subset of objects in the Ecore Model
https://www.eclipse.org/forums/index.php/mv/msg/389978/955897/#msg_955897
Thanks,
Ranjith]]>Ranjith Chungath2012-10-24T04:57:48-00:00Re: Creating Diagrams for a subset of objects in the Ecore Model
https://www.eclipse.org/forums/index.php/mv/msg/389978/956439/#msg_956439
New_and_Noteworthy. That seems to be "the documentation" for EMF Tools Diagrams. I updated the wiki to make that more clear, but since you have been using it for a while you have missed it as I did at first.
d]]>David Rees2012-10-24T14:06:30-00:00Re: Creating Diagrams for a subset of objects in the Ecore Model
https://www.eclipse.org/forums/index.php/mv/msg/389978/1384679/#msg_1384679
I have a follow up question about this. The drag and drop to new ecorediagram works fine, but the problem is all the elements don't reflect in its ecore which I need for later GMF. So is there a way to synchronize the changes to ecore or create a new ecore based on this diagram? Any hint is appreciated.
]]>Wenjing Yuan2014-05-30T10:13:22-00:00Re: Creating Diagrams for a subset of objects in the Ecore Model
https://www.eclipse.org/forums/index.php/mv/msg/389978/1385433/#msg_1385433
Cedric Brun2014-06-06T12:23:04-00:00