Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Lock listener API ?

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

0 votes


Accepted answer

Permanent link
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

0 votes

Comments

Thanks David, this pointer is great.

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,935
× 1,202
× 8

Question asked: Sep 05 '16, 3:14 p.m.

Question was seen: 2,387 times

Last updated: Sep 07 '16, 6:19 a.m.

Confirmation Cancel Confirm