Skip to main content



      Home
Home » Modeling » EMF » How to access EMF objects into a transaction
How to access EMF objects into a transaction [message #1062881] Tue, 11 June 2013 04:56 Go to next message
Eclipse UserFriend
Hi all. Smile

Is there a way to execute some operations on EMF objects into a transaction?

I'm using Xtext and I worry that the operations that I do on EMF objects (for scoping, labeling, and so on) are interleaved with those of the reconciler, so I obtain some org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException.

My fear is that the reconciler refreshes the model in another thread and so while I try to access it, the old model does not exist anymore.

How can I execute my operations on EMF model into an atomic transaction?


Thanks in advance,
Marco
Re: How to access EMF objects into a transaction [message #1063006 is a reply to message #1062881] Tue, 11 June 2013 14:30 Go to previous message
Eclipse UserFriend
Marco,

No, EMF provides no such functionality directly.

On 11/06/2013 10:56 AM, Marco Naddeo wrote:
> Hi all. :)
>
> Is there a way to execute some operations on EMF objects into a
> transaction?
>
> I'm using Xtext and I worry that the operations that I do on EMF
> objects (for scoping, labeling, and so on) are interleaved with those
> of the reconciler, so I obtain some
> org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException.
>
> My fear is that the reconciler refreshes the model in another thread
> and so while I try to access it, the old model does not exist anymore.
>
> How can I execute my operations on EMF model into an atomic transaction?
>
>
> Thanks in advance,
> Marco
Previous Topic:Set attribute type in UML model to List or ArrayList
Next Topic:[CDO] How to list a folder content taking into account permissions
Goto Forum:
  


Current Time: Wed Jul 30 16:35:34 EDT 2025

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

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

Back to the top