DefaultContent.replaceTextRange

Replaces the text with <code>newText</code> starting at position <code>start</code> for a length of <code>replaceLength</code>. Notifies the appropriate listeners. <p>

When sending the TextChangingEvent, <code>newLineCount</code> is the number of lines that are going to be inserted and <code>replaceLineCount</code> is the number of lines that are going to be deleted, based on the change that occurs visually. For example: <ul> <li>(replaceText,newText) is> (replaceLineCount,newLineCount) <li>("","\n") is> (0,1) <li>("\n\n","a") is> (2,0) </ul> </p>

@param start start offset of text to replace @param replaceLength start offset of text to replace @param newText start offset of text to replace

@exception SWTException <ul> <li>ERROR_INVALID_ARGUMENT when the text change results in a multi byte line delimiter being split or partially deleted. Splitting a line delimiter by inserting text between the CR and LF characters of the \r\n delimiter or deleting part of this line delimiter is not supported</li> </ul>

class DefaultContent
void
replaceTextRange
(
int start
,,
String newText
)

Meta