Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Update model from EGL(Update model from EGL)
Update model from EGL [message #1260615] Sat, 01 March 2014 13:00 Go to next message
Arseniy Isakov is currently offline Arseniy Isakov
Messages: 31
Registered: May 2012
Member
Hello
I need to update model during generation process. I am calling template in following way:

try {
    context.getModelRepository().getTransactionSupport().startTransaction();
    template.process();
    context.getModelRepository().getTransactionSupport().commitTransaction();
  }catch (EolRuntimeException rex) {
    context.getModelRepository().getTransactionSupport().rollbackTransaction();
    throw rex;
  }



This code I placed in the GMF wizard.
As result i got following exception:
Transaction aborted due to concurrent write

Do you have any suggestion?

Thanks
Arseniy Isakov

[Updated on: Sat, 01 March 2014 13:16]

Report message to a moderator

Re: Update model from EGL [message #1261608 is a reply to message #1260615] Sun, 02 March 2014 15:36 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 840
Registered: July 2009
Senior Member
Hi Arseniy,

Could you please put together a minimal example [1] we can use to reproduce this?

Cheers,
Dimitris
Re: Update model from EGL [message #1261725 is a reply to message #1261608] Sun, 02 March 2014 18:36 Go to previous message
Arseniy Isakov is currently offline Arseniy Isakov
Messages: 31
Registered: May 2012
Member
Hi Dimitris

Actually I resolve this issue by implementiing my Command and execute it by CommandStack

Thanks
Arseniy Isakov
Previous Topic:Modify gmf.node
Next Topic:Emfatic Generating two packages
Goto Forum:
  


Current Time: Sun Aug 31 02:30:26 EDT 2014

Powered by FUDForum. Page generated in 0.01524 seconds