Bug 223732 [Viewers] Rename StyledStringBuilder to StyledString
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StyledStringBuilder.java
}
		int endRun = findRun(offset + length);
		if (endRun >= 0) {
			
		} else {
			endRun = -(endRun + 1);
			if (offset + length < fBuffer.length()) {
				Styler prevStyle = endRun > 0 ? fStyleRuns.getRun(endRun - 1).style
						: null;
				fStyleRuns
						.add(endRun, new StyleRun(offset + length, prevStyle));
			}
		}
		int startRun = findRun(offset);
		if (startRun >= 0) {
			
			StyleRun styleRun = fStyleRuns.getRun(startRun);
			styleRun.style = styler;
		} else {
			startRun = -(startRun + 1);
			Styler prevStyle = startRun > 0 ? fStyleRuns.getRun(startRun - 1).style
					: null;
			if (isDifferentStyle(prevStyle, styler)
					|| (startRun == 0 && styler != null)) {
				fStyleRuns.add(startRun, new StyleRun(offset, styler));
				endRun++; 
			} else {
				startRun--; 
			}
		}