Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » Autosave changed referenced objects possible?
Autosave changed referenced objects possible? [message #1218307] Fri, 29 November 2013 02:58 Go to next message
Jens Rabe is currently offline Jens Rabe
Messages: 53
Registered: September 2013
Member
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.
Re: Autosave changed referenced objects possible? [message #1219139 is a reply to message #1218307] Mon, 02 December 2013 05:49 Go to previous messageGo to next message
Jens Rabe is currently offline Jens Rabe
Messages: 53
Registered: September 2013
Member
Does nobody have an idea?
Re: Autosave changed referenced objects possible? [message #1219665 is a reply to message #1218307] Thu, 05 December 2013 05:38 Go to previous message
Cedric Brun is currently offline Cedric Brun
Messages: 359
Registered: July 2009
Senior Member
Hi,

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/
Previous Topic:Strange EOpposite references behaviour
Next Topic:Metamodels in Ecore
Goto Forum:
  


Current Time: Tue Jul 29 20:56:50 EDT 2014

Powered by FUDForum. Page generated in 0.01592 seconds