List.getSelectionIndices

Returns the zero-relative indices of the items which are currently selected in the receiver. The order of the indices is unspecified. The array is empty if no items are selected. <p> Note: This is not the actual structure used by the receiver to maintain its selection, so modifying the array will not affect the receiver. </p> @return the array of indices of the selected items

@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 List
int[]
getSelectionIndices
(
)

Meta