|
|
|
|
|
|
Re: Shared Editing Domain - Errors after saving diagram changes [message #907322 is a reply to message #884637] |
Mon, 03 September 2012 19:00 |
Arto Jarvinen Messages: 32 Registered: May 2010 Location: Sweden |
Member |
|
|
I'm having the same issue. This is what I've found so far: the save causes a call to ???DocumentProvider.handleElementChanged(). This method unloads the resources for diagram A and loads the resources for diagram B leaving diagram A "empty". When a call is then made to DiagramEditorContextMenuProvider.buildContextMenu, the call TransactionUtil.getEditingDomain() gives null since it is passed a proxy instead of a loaded element (I'm quite new here so I might not get the vocabulary right but the method names should be correct at least). The result is a strack trace. I believe the same problem causes the icons to get stuck.
The symptom goes away (at least for the few cases I've tested) if I prevent the unloading of resources by commenting out changedResource.unload() in handleElementChanged() but I wouldn't bet on this as a permanent solution
My guess is that the common editing domain requires a different strategy for handling changes. That's where I'm now. Pls let me know what you've found out in the mean time.
-A
Blog: http://www.ostrogothia.com/process/
[Updated on: Mon, 03 September 2012 19:23] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03265 seconds