Community
Participate
Working Groups
N20060425-0010 The Java editor helps splitting string literals by inserting the needed extra characters, and this is quite cool: "a long literal" ^ caret here and press enter results into: "a long" + " literal" Now, it would be even better if it took care of NON-NLS markers as well. As of today: "a long literal"; // $NON-NLS-1$ ^ caret here and press enter results into: "a long" + " literal"; //$NON-NLS-1$ with a warning on the first line... Whereas it would be better to get: "a long" + //$NON-NLS-1$ " literal"; //$NON-NLS-1$ (and no warning). There are variants that makes it a bit harder than it seems at first sight (consider splitting any of the multiple strings in a single line, some of these being marked as NON-NLS). But this would save quite a few cut and paste or quick fixes.