Accessing model elements from diagrams that are not opened in an editor [message #903482] |
Thu, 23 August 2012 19:53 |
Arto Jarvinen Messages: 32 Registered: May 2010 Location: Sweden |
Member |
|
|
I wish to have several diagrams potentially containing many views of the same domain model objects. One diagram can for instance have several figures representing the same domain model element. I use a shared editing domain for all diagram editors.
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
Blog: http://www.ostrogothia.com/process/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03582 seconds