|
Re: How to access EMF objects into a transaction [message #1063006 is a reply to message #1062881] |
Tue, 11 June 2013 14:30  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02991 seconds