Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Delete all domain elements and diagram elements
Delete all domain elements and diagram elements [message #486556] Fri, 18 September 2009 08:13 Go to next message
Eclipse UserFriend
Originally posted by: kretschmer.e-mundo.de

Hi there,

i wrote my own Navigator where i display my whole domain elements in a
tree viewer. For persistence i use a database with the teneo plugin. I
made several diagrams which i open dependend on the modeltype. I open them
with a pop-up menu where i fetch the corresponding diagram and open it.

My problem now is that i want to delete a domain element with all the
subelements of it and all the corresponding diagrams. I can delete the
domain element with its subelements on the resource.

My question is how can i delete all the diagrams for the domain elements
without going manually through the domain elements and look for each
diagram?

thanks in advance
Philipp
Re: Delete all domain elements and diagram elements [message #486591 is a reply to message #486556] Fri, 18 September 2009 10:45 Go to previous message
Alex Shatalin is currently offline Alex ShatalinFriend
Messages: 141
Registered: July 2009
Senior Member
Hello Philipp,

Use EcoreUtil.CrossReferencer to find incoming references (from diagram instances).

-----------------
Alex Shatalin
Previous Topic:Icons in diagram editor
Next Topic:Shared Editing Domain settings for drag-drop
Goto Forum:
  


Current Time: Thu Apr 25 15:51:38 GMT 2024

Powered by FUDForum. Page generated in 0.02500 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top