Community
Participate
Working Groups
Created attachment 279268 [details] UI preview The UI part for bug 549249. Added a button next to each blank line spinner, disabled if the blank lines value is greater or equal to the "Number of empty lines to preserve" value.
New Gerrit change created: https://git.eclipse.org/r/146059
New Gerrit change created: https://git.eclipse.org/r/146060
Noopur, can you check if everything looks good?
I'll take a look this week.
The new button looks fine. Just a few questions: Is pressing the button equivalent to setting the spinner value to 0? If so, do we still need a new button? If so, should the button be disabled when the spinner value is 0?
(In reply to Noopur Gupta from comment #5) Up until now, setting the spinner button to 0 meant "don't add blank lines here, but if there already are some, leave them in" (up to the Number of empty lines to preserve setting). Now pressing the button changes this behavior to always remove blank lines (so the Number of empty lines to preserve is ignored). That's why the button is only disabled when it's not possible to have more blank lines anyway, that is when the Number of empty lines to preserve is not greater than the spinner value.
OK, got it. Looks fine.
Gerrit change https://git.eclipse.org/r/146059 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=699dba31573baf10ec17af7fabe7165d1e3840ae
Thanks. Can you merge the platform.images gerrit? I don't have rights. I'd like to wait with the N&N note. I want to make more changes related to blank lines in this release and they'll probably all fit into one N&N item.
Gerrit change https://git.eclipse.org/r/146060 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.images.git/commit/?id=d561e60621ea885e0a236fdfeb0b45a96d19bff9
N&N added with https://git.eclipse.org/c/www.eclipse.org/eclipse/news.git/commit/?id=06a19da4dda51f50d425571c0d38075d3ee22533