* @param item the index of the item in the table, or -1 if the item does not exist in the table.
* @return the index of the specified item in the table.
* @since 1.0
*/
public int indexOf(final String item) {
return syncExec(new IntResult() {
public Integer run() {
TableItem[] items = widget.getItems();
for (int i = 0; i < items.length; i++) {
TableItem tableItem = items[i];
if (tableItem.getText().equals(item))