Is there a way to enforce a code style programatically in eclipse e.g. using eclipse plugins.
I have created a code template. I want to enforce it so that everytime a user selects save or saveas,the code template is checked against the one I created. If it matches the file is saved otherwise the user gets an error message.
The problem I am facing is - how do I get Code Style (template) name at run time.. and where do i add this code so that to enforce it...
Any pointers is greatly appreciated.