Community
Participate
Working Groups
Build Identifier: I20100527-1700 Currently, you have to select the whole string (including quotes) to enable "Extract to constant" in the quick fix menu. It would be nice if Eclipse would simply select the constant I'm in when I press Ctrl+1 inside of a string or number. Reproducible: Always
Agree. As a workaround you can use Alt+Shift+Up_Arrow to make the selection.
Created attachment 171921 [details] Fix The Extract Constant and Extract Local Variable refactorings already work on the enclosing (or adjacent) expression. Made the quick assists behave the same.
Fixed in HEAD.
Verified with I20100802-1800 on Ubuntu.
For 3.7 M2, I've released an additional fix to QuickAssistProcessor that drops the relevance of these proposals when the selection is empty.