Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » What happens when an object is deleted?
What happens when an object is deleted? [message #1863686] Wed, 21 February 2024 09:27 Go to next message
Sachin Goyal is currently offline Sachin GoyalFriend
Messages: 19
Registered: February 2024
Junior Member
I have 3 classes for example.
one is named as A, second B and likewise third is C.
Now, every object of A has one object of B and one Object of C associated with it.
Now, object of B has one list and object of C also has a list.
And list of Object C is depending on list of Object B.
If i delete one entry from the list of B, then i want to delete corresponding entry from the list of object of C.
How can i do that?
Re: What happens when an object is deleted? [message #1863690 is a reply to message #1863686] Wed, 21 February 2024 11:49 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33143
Registered: July 2009
Senior Member
Have a look at org.eclipse.emf.ecore.util.EcoreUtil.delete(EObject, boolean).

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:How to get an Object from it's uri path
Next Topic:Tree view on Xtext model file on the first run not working (crosspost)
Goto Forum:
  


Current Time: Thu May 02 02:52:05 GMT 2024

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

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

Back to the top