Oct 25th, 2012, 03:41 AM
Any way to have "reformat" save actions for Java files and not for Groovy ones?
On my projects I enabled "Save actions" performing "Format source code", Organize imports and other additional actions (from Project Properties|Java Editor|Save Actions).
I don't want the same for groovy files, but when I edit and save, it applies all the same actions I've set for Java sources.
I've seen at workspace preferences level there are some options for groovy formatter and save actions, but they are not enough.
Since Groovy language is not the Java language I'd like to set different save actions - and maybe different formatting rules - or at least I'd need a way to disable save actions for groovy files (as a first step a file exclusion pattern would be enough).
Oct 25th, 2012, 10:59 AM
This feature has not yet been implemented. The only way that I can think of doing this right now is to separate your java and groovy files into separate projects and apply different setting per-project.
Could you raise a feature request here:
Oct 25th, 2012, 11:17 AM
I've just filed GRECLIPSE-1533.
Originally Posted by Andrew Eisenberg
Oct 25th, 2012, 11:55 AM