Let's say I have an object A and an object B. Both are contained in different Resources. Object A has a reference to B and object B has a reference to A. Both references are linked with EOpposite. So, when I do myA.setB(myB), myB.setA(myA) will be implicitly called.
But now, doing myA.eResource().save() will only save the A. Is there a mechanism to track the above side-effect modification and implicitly call myB.eResource().save() as well, or do I have to implement my own tracking to handle this save?
I thought using Resource.setTrackingModification(true) would do the trick, but that does not work.
I'm afraid you asked on the wrong forum. This forum is focused on EcoreTools which is a diagram editor for Ecore models, not on EMF itself. You should ask your question on the EMF newsgroup, no doubt you'll get a quick response there : http://www.eclipse.org/forums/index.php/f/108/