I was wondering in Eclipse if it’s possible to intercept when a user hits save or ‘ctrl + s’ via some sort of listener. What I want to do is determine when a file in a project changes and receive this notification before the file is actually compiled, so that I can update a property in the class. Afterwards, I would like the file to be compiled as per normal. Is this at all possible? Similar to the idea of a database trigger I suppose.
Share
I would look at
org.eclipse.jdt.core.compilationParticipant. From the description: