Lock listener API ?
Gidi Gal (96●20●58)
| asked Sep 05 '16, 3:14 p.m.
edited Sep 05 '16, 9:35 p.m. by David Lafreniere (4.8k●7)
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
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
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.