Sets the widget content.
If the widget has the SWT.SINGLE style and "text" contains more than
one line, only the first line is rendered but the text is stored
unchanged. A subsequent call to getText will return the same text
that was set.
<p>
<b>Note:</b> Only a single line of text should be set when the SWT.SINGLE
style is used.
</p>
@param text new widget content. Replaces existing content. Line styles
that were set using StyledText API are discarded. The
current selection is also discarded.
@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>
Sets the widget content. If the widget has the SWT.SINGLE style and "text" contains more than one line, only the first line is rendered but the text is stored unchanged. A subsequent call to getText will return the same text that was set. <p> <b>Note:</b> Only a single line of text should be set when the SWT.SINGLE style is used. </p>
@param text new widget content. Replaces existing content. Line styles that were set using StyledText API are discarded. The current selection is also discarded. @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>