Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Editing Domain and Transactional Editing Domain
Editing Domain and Transactional Editing Domain [message #1384828] Mon, 02 June 2014 11:37 Go to next message
Juliane Mueller is currently offline Juliane Mueller
Messages: 30
Registered: August 2011
Member
Hello Smile

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

Re: Editing Domain and Transactional Editing Domain [message #1385104 is a reply to message #1384828] Wed, 04 June 2014 11:18 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1618
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Juliane,

not sure if I understood that correctly...

usually an editing domain is created for each editor inside the method
createEditingDomain in DefaulUpdateBehavior. Did you override the coding
there with the coding you sent?

In case not, that would the an explanation why your editing domain does not
get notified on changes.

Michael
Re: Editing Domain and Transactional Editing Domain [message #1386590 is a reply to message #1385104] Wed, 18 June 2014 13:23 Go to previous message
Juliane Mueller is currently offline Juliane Mueller
Messages: 30
Registered: August 2011
Member
Yes, an Editing Domain is created for each editor.
My problem is that there is no UpdateNeeded called in case of any changes.
For example if I change anything outside the editor nothing happens, but I think usually the updateNeeded-Method should be called.

How can I link my own editor and get the modifications?

Best regards, Juliane
Previous Topic:EObjects become null when I delete their connection [ScreenCast]
Next Topic:Graphiti and SWTBot - getting a connection edit part
Goto Forum:
  


Current Time: Fri Oct 24 07:48:56 GMT 2014

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

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