Skip to main content


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 07:58 Go to next message
Jens Rabe is currently offline Jens RabeFriend
Messages: 81
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 10:49 Go to previous messageGo to next message
Jens Rabe is currently offline Jens RabeFriend
Messages: 81
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 10:38 Go to previous message
Cedric Brun is currently offline Cedric BrunFriend
Messages: 431
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/


http://cedric.brun.io news and articles on eclipse and eclipse modeling.
Previous Topic:Strange EOpposite references behaviour
Next Topic:Metamodels in Ecore
Goto Forum:
  


Current Time: Wed Apr 24 20:44:06 GMT 2024

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

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

Back to the top