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

Receiving client event when stream is deleted

Hello to the forum members,

I'm looking for an event to indicate when stream is deleted. I am using
com.ibm.team.filesystem.client.ISharingManager.addListener(com.ibm.team.filesystem.client.ICopyFileAreaListener arg0) to detect when component is loaded\unloaded. However, this listener is not notified when stream is deleted. If you know which listener receives such event I'll be grateful for your comments.

Thanks,
Gidi

1 vote


Accepted answer

Permanent link
You can use the IItemManager#addItemChangeListener() to listen for item deletions. If your client is offline while the deletion occurs, you won't get an event (but fetching the item will fail). If you want to handle that scenario, you could look at the event feed for the owning process area.
David Lafreniere selected this answer as the correct answer

0 votes


One other answer

Permanent link
Gidi,

superficial scan of code seems to indicate that there are generic delete actions, ID defined by e.g. ActionFactory.DELETE.getId(); as used in IMenuOperationTarget.

Would it help to look at
org.eclipse.ui.actions.DeleteResourceAction
?

0 votes

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,934
× 1,202
× 457

Question asked: Nov 27 '14, 3:52 a.m.

Question was seen: 4,674 times

Last updated: Dec 02 '14, 9:38 a.m.

Confirmation Cancel Confirm