(final StringBuilder newValue, final char c, final int selectionStart,
final int selectionEnd)
| 138 | } |
| 139 | |
| 140 | private static void add(final StringBuilder newValue, final char c, final int selectionStart, |
| 141 | final int selectionEnd) { |
| 142 | if (selectionStart == newValue.length()) { |
| 143 | newValue.append(c); |
| 144 | } |
| 145 | else { |
| 146 | newValue.replace(selectionStart, selectionEnd, Character.toString(c)); |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | private static void add(final StringBuilder newValue, final String string, final int selectionStart, |
| 151 | final int selectionEnd) { |