Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Listening to File saves
Listening to File saves [message #333861] Fri, 09 January 2009 19:12
Eclipse UserFriend
Hi,

I am trying to find a way to be notified when the user explictly saves an
IFile. Using a ResourceChangeListener isn't good enough since its notified
by any type of change (i.e. if a file has been overwritten, or built ...).
Using an ISaveParticipant doesn't work either as this seems to be only for
workspace saves, it doesn't get invoked specifically for an Editor Save.

Debugging through the code, I don't really see any hooks, but perhaps I've
just missed it. Does anyone know of a way to be notified only when an
ITextEditor is saved? (or at least when the user has pressed CTRL+S or
clicked Save from the file menu, etc...)

Thanks in advance,
Adam
Previous Topic:How can I increase heap and permanent memory
Next Topic:Eclipse hel webapp deployment with Apache HTTPD and Tomcat
Goto Forum:
  


Current Time: Wed Mar 12 01:54:19 EDT 2025

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

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

Back to the top