|
Re: Programmatically update diagrams + write transaction [message #1109974 is a reply to message #1106640] |
Mon, 16 September 2013 07:38 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
Hi,
Quote:I found out that Papyrus uses a read-only editing domain (PapyrusROTransactionalEditingDomain).
Actually, the name of this class is not really accurrate. It is actually an EditingDomain which also has support for Read-only resources.
The main issue, in your case, is that it is Transactional. You need to start a transaction before you can actually start modifying the model. For example:
Command command = ...; //An EMF Edit Command
editingDomain.getCommandStack().execute(command); //The command stack handles the transaction
Regards,
Camille
Camille Letavernier
|
|
|
Powered by
FUDForum. Page generated in 0.02964 seconds