ToolItem.getSelection

Returns <code>true</code> if the receiver is selected, and false otherwise. <p> When the receiver is of type <code>CHECK</code> or <code>RADIO</code>, it is selected when it is checked (which some platforms draw as a pushed in button). If the receiver is of any other type, this method returns false. </p>

@return the 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 ToolItem
bool
getSelection
(
)

Meta