Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to access to an IResource before it is modified
icon5.gif  How to access to an IResource before it is modified [message #1021255] Tue, 19 March 2013 18:44
Kivanc Muslu is currently offline Kivanc Muslu
Messages: 153
Registered: November 2010
Senior Member
Hi all,

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

Previous Topic:"Source not Found" in Debug Mode
Next Topic:Timeout Exception
Goto Forum:
  


Current Time: Sat Sep 20 02:00:11 GMT 2014

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

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