[CDO] How to make sure cdoLockState().isLocked is up to date ? [message #1154852] |
Fri, 25 October 2013 09:59  |
Eclipse User |
|
|
|
Hi all,
I built some kind of project explorer displaying a tree of CDO objects.
In my context menu, I can delete an object.
Before I do that, I check with cdoLockState().isLocked if the object is locked by another user (another instance of my RCP application).
If locked, deletion is rejected, which is normal.
But if the other user unlocks the object, it seems that my project explorer object cdoLockState is not updated / notified.
Only when I restart my application or when I double click on the object to open the associated Graphiti editor (this causes my RCP app instance to acquire the lock), then I can successfully ask for the object deletion (cdoLockState has been accordingly updated).
How can I make sure my object cdoLockState is up to date (without using one of the above "workarounds") ?
Regards,
Laurent
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.19490 seconds