StyledText.setSelection

Sets the selection to the given position and scrolls it into view. Equivalent to setSelection(start,start).

@param start new caret position @see #setSelection(int,int) @exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul> @exception IllegalArgumentException <ul> <li>ERROR_INVALID_ARGUMENT when either the start or the end of the selection range is inside a multi byte line delimiter (and thus neither clearly in front of or after the line delimiter) </ul>

Meta