Adds the specified style.
<p>
The new style overwrites existing styles for the specified range.
Existing style ranges are adjusted if they partially overlap with
the new style. To clear an individual style, call setStyleRange
with a StyleRange that has null attributes.
</p><p>
Should not be called if a LineStyleListener has been set since the
listener maintains the styles.
</p>
@param range StyleRange object containing the style information.
Overwrites the old style in the given range. May be null to delete
all styles.
@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_RANGE when the style range is outside the valid range (> getCharCount())</li>
</ul>
Adds the specified style. <p> The new style overwrites existing styles for the specified range. Existing style ranges are adjusted if they partially overlap with the new style. To clear an individual style, call setStyleRange with a StyleRange that has null attributes. </p><p> Should not be called if a LineStyleListener has been set since the listener maintains the styles. </p>
@param range StyleRange object containing the style information. Overwrites the old style in the given range. May be null to delete all styles. @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_RANGE when the style range is outside the valid range (> getCharCount())</li> </ul>