Sets the shape of the shell to the region specified
by the argument. When the argument is null, the
default shape of the shell is restored. The shell
must be created with the style SWT.NO_TRIM in order
to specify a region.
@param region the region that defines the shape of the shell (or null)
@exception IllegalArgumentException <ul>
<li>ERROR_INVALID_ARGUMENT - if the region has been disposed</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 shape of the shell to the region specified by the argument. When the argument is null, the default shape of the shell is restored. The shell must be created with the style SWT.NO_TRIM in order to specify a region.
@param region the region that defines the shape of the shell (or null)
@exception IllegalArgumentException <ul> <li>ERROR_INVALID_ARGUMENT - if the region has been disposed</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>
@since 3.0