ToolItem.setControl

Sets the control that is used to fill the bounds of the item when the item is a <code>SEPARATOR</code>.

@param control the new control

@exception IllegalArgumentException <ul> <li>ERROR_INVALID_ARGUMENT - if the control has been disposed</li> <li>ERROR_INVALID_PARENT - if the control is not in the same widget tree</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>

class ToolItem
void
setControl

Meta