Thanks, Phil. I'll take a look at this and consider merging it. It's probably reasonable on the basis that these settings are closer to our actual formatting conventions than the default Eclipse settings are. However, it's important that this change isn't construed as an endorsement for hitting CTRL-SHIFT-F liberally in Spring Framework sources prior to submitting a pull request. For those that wish to use automated formatting, it should be only on the code blocks being added or changed for the issue at hand, and then still looked over manually to ensure that it actually follows conventions, which can be pretty nuanced.
The main point is that I don't want to see pull requests coming in with a bunch of unrelated formatting changes because the submitter got a false sense of confidence from these formatter settings being present.
For those that wish to use automated formatting, it should be only on the code blocks being added or changed for the issue at hand
FYI: under Java / Editor / Save Actions, if you check "Format source code", you can then select the "Format edited lines" radio button instead of "Format all lines". This applies to the entire workspace. I haven't looked at the settings in the pull request, but perhaps there's an option to configure this for the individual projects as well.
The pull request enables project specific code formatting but does not enable any save actions. My aim was to try and make it easier for developers to make use of eclipse features without encouraging them to destroy the existing source formatting. This has mainly been driven from my experiences looking at #14067.
Perhaps the WIKI needs some updating to make it clear what options should not be used.
Things that work with the patch applied :
New lines of code will not be formatted automatically but subtleties such as hitting tab and not getting spaces will work.
A block of text can be highlighted and CTRL-F will provide a close approximation to Spring formatting.
Code cleanup can be applied to ensure private members are final, access is qualified with 'this', unused imports are removed and trailing spaces are trimmed.
Things that do not work (with or without the patch) :
Organize Imports will never match the Spring style.
Format source code (on the entire file) will always cause too much change.
I think that developers liberally hitting CTRL-F in eclipse is a problem that you will have with or without this patch and can only really be solved by clear submission guidelines.