|Re: Programmatically update diagrams + write transaction [message #1109974 is a reply to message #1106640]
||Mon, 16 September 2013 07:38
| Camille Letavernier
Registered: February 2011
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
Powered by FUDForum
. Page generated in 0.55998 seconds