/** * Sets the content to text and removes the gap since there are no sensible * predictions about where the next change will occur. * <p> * * @param text * the text */ @Override public void setText(String text) { this.textStore = text.toCharArray(); this.gapStart = -1; this.gapEnd = -1; this.expandExp = 1; indexLines(); TextChangedEvent textSet = TextChangedEvent.textSet(this); for (TextChangeListener l : this.textListeners) { l.textSet(textSet); } }
/** * Sets the content to text and removes the gap since there are no sensible * predictions about where the next change will occur. * <p> * * @param text * the text */ @Override public void setText(String text) { this.textStore = text.toCharArray(); this.gapStart = -1; this.gapEnd = -1; this.expandExp = 1; indexLines(); TextChangedEvent textSet = TextChangedEvent.textSet(this); for (TextChangeListener l : this.textListeners) { l.textSet(textSet); } }
int[][] newLines = indexLines(startLineOffset, startLineLength, 10);
int[][] newLines = indexLines(startLineOffset, startLineLength, 10);
int[][] oldLines = indexLines(position, length + (this.gapEnd - this.gapStart), numLines);
int[][] oldLines = indexLines(position, length + (this.gapEnd - this.gapStart), numLines);