@Override public final void set(String text) { /* * Moves the gap to the end of the content. There is no sensible prediction of where the * next change will occur, but at least the next change will not trigger re-allocation. This * is especially important when using the GapTextStore within a CopyOnWriteTextStore, where * the GTS is only initialized right before a modification. */ replace(0, getLength(), text); }
@Override public final void set(String text) { /* * Moves the gap to the end of the content. There is no sensible prediction of where the * next change will occur, but at least the next change will not trigger re-allocation. This * is especially important when using the GapTextStore within a CopyOnWriteTextStore, where * the GTS is only initialized right before a modification. */ replace(0, getLength(), text); }