Skip to main content


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 18:00 Go to next message
Arseniy Isakov is currently offline Arseniy IsakovFriend
Messages: 118
Registered: May 2012
Senior 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 18:16]

Report message to a moderator

Re: Update model from EGL [message #1261608 is a reply to message #1260615] Sun, 02 March 2014 20:36 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2154
Registered: July 2009
Location: York, UK
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 23:36 Go to previous message
Arseniy Isakov is currently offline Arseniy IsakovFriend
Messages: 118
Registered: May 2012
Senior 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: Fri Mar 29 13:42:50 GMT 2024

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

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

Back to the top