Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] How to make sure cdoLockState().isLocked is up to date ?
[CDO] How to make sure cdoLockState().isLocked is up to date ? [message #1154852] Fri, 25 October 2013 13:59 Go to next message
Laurent Le Moux is currently offline Laurent Le MouxFriend
Messages: 184
Registered: September 2011
Senior Member
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
Re: [CDO] How to make sure cdoLockState().isLocked is up to date ? [message #1157656 is a reply to message #1154852] Sun, 27 October 2013 11:09 Go to previous messageGo to next message
Laurent Le Moux is currently offline Laurent Le MouxFriend
Messages: 184
Registered: September 2011
Senior Member
Oups ! My fault, lock notification was not set for this transaction...
Sorry for the disturbance...
Re: [CDO] How to make sure cdoLockState().isLocked is up to date ? [message #1157758 is a reply to message #1157656] Sun, 27 October 2013 12:43 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6457
Registered: July 2009
Senior Member
Am 27.10.2013 12:09, schrieb Laurent Le Moux:
> Oups ! My fault, lock notification was not set for this transaction...
> Sorry for the disturbance...
No problem. Good that you solved it ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:org.eclipse.emf.databinding problem
Next Topic:[CDO] parse XMI Exception?????
Goto Forum:
  


Current Time: Thu Dec 05 18:31:48 GMT 2019

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

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

Back to the top