Getting list of files in folder which was deleted
Hello to the forum members,
My RTC extension displays information related to files in a workspace. I listen to repository events using the API
void com.ibm.team.repository.client.util.IEventSource.addGenericListener(IConfigurationUpdateEvent.CONFIGURATION_UPDATED, IListener arg1)
A possible event - user deletes a folder in his RTC (Eclipse) project and checks-in this change. I need to update my display, I'd like to know which files are no longer valid (were deleted because they are under the deleted folder). In such case, the IItemUpdateReport object received by the event will have value for the previous state and the new-current state will be set to null. I tried to use the API IConfiguration.childEntries(java.util.List folderHandles, org.eclipse.core.runtime.IProgressMonitor monitor) on the previous state in order to get the list of files that folder contained before it was deleted. I received a [null] list.
Question: is there an API to receive the list of the files in a deleted folder ?
Thanks,
Gidi
My RTC extension displays information related to files in a workspace. I listen to repository events using the API
void com.ibm.team.repository.client.util.IEventSource.addGenericListener(IConfigurationUpdateEvent.CONFIGURATION_UPDATED, IListener arg1)
A possible event - user deletes a folder in his RTC (Eclipse) project and checks-in this change. I need to update my display, I'd like to know which files are no longer valid (were deleted because they are under the deleted folder). In such case, the IItemUpdateReport object received by the event will have value for the previous state and the new-current state will be set to null. I tried to use the API IConfiguration.childEntries(java.util.List folderHandles, org.eclipse.core.runtime.IProgressMonitor monitor) on the previous state in order to get the list of files that folder contained before it was deleted. I received a [null] list.
Question: is there an API to receive the list of the files in a deleted folder ?
Thanks,
Gidi
Comments
Geoff Alexander
Mar 16 '20, 4:23 p.m.Did you ever figure this out?
Gidi Gal
Mar 17 '20, 8:11 a.m.