It's all about the answers!

Ask a question

Receiving client event when stream is deleted


Gidi Gal (962056) | asked Nov 27 '14, 3:52 a.m.
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

Accepted answer


permanent link
Evan Hughes (2.4k1318) | answered Dec 02 '14, 9:38 a.m.
JAZZ DEVELOPER
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

One other answer



permanent link
Arne Bister (2.6k12832) | answered Dec 02 '14, 9:10 a.m.
JAZZ DEVELOPER
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
?

Your answer


Register or 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.