Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » File pre-delete notification & Persitent properties
File pre-delete notification & Persitent properties [message #332160] Tue, 07 October 2008 19:06
Alexander Karnstedt is currently offline Alexander KarnstedtFriend
Messages: 68
Registered: July 2009
Member
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.
Previous Topic:Call hierarchy view
Next Topic:Invalid links on web page
Goto Forum:
  


Current Time: Sat Dec 21 16:34:28 GMT 2024

Powered by FUDForum. Page generated in 0.03603 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top