Sets the maximum number of characters that the receiver
is capable of holding to be the argument.
<p>
Instead of trying to set the text limit to zero, consider
creating a read-only text widget.
</p><p>
To reset this value to the default, use <code>setTextLimit(Text.LIMIT)</code>.
Specifying a limit value larger than <code>Text.LIMIT</code> sets the
receiver's limit to <code>Text.LIMIT</code>.
</p>
@param limit new text limit
@exception IllegalArgumentException <ul>
<li>ERROR_CANNOT_BE_ZERO - if the limit is zero</li>
</ul>
@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 maximum number of characters that the receiver is capable of holding to be the argument. <p> Instead of trying to set the text limit to zero, consider creating a read-only text widget. </p><p> To reset this value to the default, use <code>setTextLimit(Text.LIMIT)</code>. Specifying a limit value larger than <code>Text.LIMIT</code> sets the receiver's limit to <code>Text.LIMIT</code>. </p>
@param limit new text limit
@exception IllegalArgumentException <ul> <li>ERROR_CANNOT_BE_ZERO - if the limit is zero</li> </ul> @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>
@see #LIMIT