Community
Participate
Working Groups
M3 test candidate String s= "Ec" + "lip" + "se"; Selecting "Ec" + "lip" + "se" should offer a quick assist to join strings into "Eclipse"
This is the reverse of "Pick out selected part of String".
Created attachment 223548 [details] Patch to add "Combine selected strings" quick assist Proposed patch for bug, courtesy of Vancouver Eclipse Hackathon :)
http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=16f2aba89407ff4511e9e9ec6d5e0a9453a01a0f Thanks for the fix, Billy!
Thanks everybody. I've changed the label to "Combine to single String", made it work if the caret is on or inside a StringLiteral (like the "Use 'StringBuilder' for string concatenation"), and adjusted the copyright to the pattern we use for all new contributions: Your Name <email@example.com> - Bug Title - https://bugs.eclipse.org/BUG_NUMBER http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=1949da52f6ae5c880195499dfa95263a5b267bbf Filed bug 394287 to make it also work when interspersed with other literals.
Verified in I20121210-2000.