Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Listening to File saves
Listening to File saves [message #333861] Sat, 10 January 2009 00:12
Adam Neal is currently offline Adam NealFriend
Messages: 40
Registered: July 2009
Member
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: Mon Dec 30 18:05:45 GMT 2024

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

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

Back to the top