Catching save event

Good day,

Is there a way to detect that a file is about to be saved or closed? What I want to do is to create a plugin that performs some actions, like check to make sure that all public methods are javadoc'd and then run the reformat code action to ensure that all the code is properly formatted. I can then use this to enforce coding standards in our project to try and keep things clean.


1 comment

Have a look at the VirtualFileListener and the beforeContentsChanged and the contentsChanged methods.

good luck,



Please sign in to leave a comment.