It's all about the answers!

Ask a question

Lock listener API ?


Gidi Gal (961952) | asked Sep 05 '16, 3:14 p.m.
edited Sep 05 '16, 9:35 p.m. by David Lafreniere (4.8k7)
Hello to the forum members,

Is there an event being triggered when file is locked\unlocked ? I tried looking in EventManager class, maybe I missed something, but I could not find there an appropriate listener.

Thanks,
Gidi

Accepted answer


permanent link
David Lafreniere (4.8k7) | answered Sep 05 '16, 9:34 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
The event is: IWorkspaceManager.USER_LOCKS

Ex:
IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(repo)
wm.addGenericListener(IWorkspaceManager.USER_LOCKS, listener);

Also, the client-side lock API is: IWorkspaceManager.applyLockOperations()
Gidi Gal selected this answer as the correct answer

Comments
Gidi Gal commented Sep 07 '16, 6:19 a.m.

Thanks David, this pointer is great.

Your answer


Register or to post your answer.