Skip to main content



      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
Eclipse UserFriend
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] by 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
Eclipse UserFriend
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
Eclipse UserFriend
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: Wed Jul 23 13:54:11 EDT 2025

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

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

Back to the top