The `getSelectionIndex()` method in the `org.eclipse.swt.widgets.List` class is used in Java to retrieve the index of the currently selected item in a List widget. It returns an integer value representing the index of the selected item. If no item is currently selected, the method returns `-1`. This method is useful when working with List widgets to retrieve the index of the selected item for further processing or manipulation.
Java List.getSelectionIndex - 30 examples found. These are the top rated real world Java examples of org.eclipse.swt.widgets.List.getSelectionIndex extracted from open source projects. You can rate examples to help us improve the quality of examples.