MenuItem.setSelection

Sets the selection state of the receiver. <p> When the receiver is of type <code>CHECK</code> or <code>RADIO</code>, it is selected when it is checked.

@param selected the new selection state

@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 MenuItem
void
setSelection
()

Meta