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 |
Accepted answer
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
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
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.