ExpandItem [] items = getItems (); for (int i = 0; i < items.length; i++) { if (item == items [i]) return i;
for (int i = 0; i < itemCount; i++) { if (items [i] == item) return i;
public int indexOf (ExpandItem item) {	checkWidget();	if (item == null) error (SWT.ERROR_NULL_ARGUMENT);	ExpandItem [] items = getItems ();	for (int i = 0; i < items.length; i++) {		if (item == items [i]) return i;	}	return -1;}