TransactionChangeRecorder not added in my CDOObject adapters [message #1774515] |
Mon, 16 October 2017 11:45  |
Eclipse User |
|
|
|
Hello,
I have an Eclipse RCP client wich use EMF/CDO with Sirius and a little CLI program which add some CDOObjects to my model. When this CLI program add a new object, it appears correctly in my diagram but I can't move it. I managed to find what's the problem: my CDOObject has no eAdapters, it should have at least the TransactionChangeRecorder from my TransactionalEditingDomainImpl so the recorder can return a correct ChangeDescription from its endRecording function at the end of an EMF commit transaction.
When I create an object from the palette, it's works fine.
Do you have any idea ?
Thank you.
Regards,
Arthur
|
|
|
|
|
|
|
Re: TransactionChangeRecorder not added in my CDOObject adapters [message #1774699 is a reply to message #1774686] |
Wed, 18 October 2017 13:22  |
Eclipse User |
|
|
|
Hi, Arthur,
It can be difficult to pinpoint where exactly in what EList implementation an object is added to a list. It is easier when debugging a problem like this to add an override of the eBasicSetContainer(...) method in the XyzImpl class that you're attaching to the model and a breakpoint on the super(...) call. No matter what else happens, and CDO has some weird ways of materializing objects in a model out of the ether, the EMF run-time has to ensure that the object is assigned its container.
HTH,
Christian
|
|
|
Powered by
FUDForum. Page generated in 0.03468 seconds