Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsAccessing model elements from diagrams that are not opened in an editor
https://www.eclipse.org/forums/index.php/mv/msg/369970/903482/#msg_903482
I'm designing a command for deleting a domain model object. It is supposed to delete the domain model object itself and all views of the domain model object in all diagrams regardless of if they are open in an editor or not.
It seems that getEditingDomain().getResourceSet() only loads the objects in the open diagram + the objects in the domain model. Not until I open a particular diagram are the corresponding views added to the resource set.
What would be the best way to load all objects in the model so that I can delete them using the appropriate delete commands?
Thanks!
Arto]]>Arto Jarvinen2012-08-23T19:53:05-00:00Re: Accessing model elements from diagrams that are not opened in an editor
https://www.eclipse.org/forums/index.php/mv/msg/369970/903611/#msg_903611
Arto
]]>Arto Jarvinen2012-08-24T14:15:23-00:00