Editing Domain and Transactional Editing Domain [message #1384828] |
Mon, 02 June 2014 11:37 |
Juliane Mueller Messages: 30 Registered: August 2011 |
Member |
|
|
Hello
For understanding: I have my own EMF model with related Editing Domain.
A Graphiti-Diagram is drawn automatically from my Datamodel.
I've created the needed TransactionalEditingDomain this way:
//try here to get the resource set to our existing proxy!
ResourceSet resourceSet = DataItemHelper.getInstance().getProxyForDataItem(myComponent).getResourceSet();
TransactionalEditingDomain editingDomain = TransactionUtil.getEditingDomain(resourceSet);
if (editingDomain == null) {
// Not yet existing, create one
LoggerPlugin.getDefault().debug("Editing Domain is created");
editingDomain = TransactionalEditingDomain.Factory.INSTANCE.createEditingDomain(resourceSet);
}
like on this page: http://www.eclipse.org/forums/index.php/t/351002/
So my Problem is:
If I want to use the UpdateFeature like described in the tutorial, the TransactionalEditingDomain doesn't get any modifications, even if I change something in my datamodel.
How can I link the two EditingDomains (my Editingdomain and the TransactionalEditingDomain) so every EditingDomain gets every change? Has anyone an idea?
I would be truly grateful for any suggestions!
Regards, Juliane
[Updated on: Mon, 02 June 2014 11:57] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01885 seconds