| How to access to an IResource before it is modified [message #1021255]
||Tue, 19 March 2013 18:44
| Kivanc Muslu
Registered: November 2010
My Eclipse plug-in needs to cache each resource before it is being modified by one of the contributors that extend my plug-in. Using IResourceChangeListener, I can detect when an extension modifies a resource, however this point is too late for me as I only get the final version of the resource, not the version before it is modified.
Is there a way to get notified before a resource is about to be changed in the workspace? I am thinking something very similar to IDocumentListener, where it provides documentAboutToChange(..) event where you can access to the non-changed document. Is there an extension to IResourceChangeListener --- or another listener that I can use --- that would give me the non-modified resource just before the access?
Best regards, thank you,
Edit: Marked as a question...
[Updated on: Tue, 26 March 2013 21:19]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.05998 seconds