| 
| File pre-delete notification & Persitent properties [message #332160] | Tue, 07 October 2008 15:06 |  | 
| Eclipse User  |  |  |  |  | Are there any new insights, solutions to this issue thenceforth? 
 I've got the same problem...
 
 * having a IResourceChangeListener
 * deleting a File with attached persitent properties
 * at IResourceChangeListener#resourceChanged all persitent properties are gone,
 because at this moment the file has been already deleted
 
 I saw that there is a very old Bug 6402, which says I should use the
 MoveDeleteHook extension point. But as I understand, this extension point is
 solely for team providers.
 
 Should I write my own resource property container? That would be a pity, because
 the IFile#setPersistentProperty works well and stable and I want to reuse this
 concept.
 
 Regards, Alex
 
 
 Xavier Décoret schrieb am 20.04.2006 10:11:
 > I have a file GEN that is generated by an incremental builder SRC. The
 > GEN file has a persistent settings indicating it was generated from SRC.
 >
 > When GEN is deleted (by the user from the workbench), I want to "touch"
 > SRC so that next build will regenerate GEN.
 >
 > The problem is that I cannot find a place where to be notified of this
 > deletion. I tried the IResourceChangeListener but it gets notified of
 > the file deletion *after* it was deleted, so I can no longer access the
 > persistent settings. There seems to be a PRE_DELETE notification but it
 > gets triggered only for projects (not files) removal.
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03376 seconds