case SWT.TRAVERSE_ARROW_NEXT: if (selectedIndex < items.length - 1) { setSelection(selectedIndex + 1, true); } event.doit = true; event.detail = SWT.TRAVERSE_NONE; break; case SWT.TRAVERSE_ARROW_PREVIOUS: if (selectedIndex > 0) { setSelection(selectedIndex - 1, true); } event.doit = true; event.detail = SWT.TRAVERSE_NONE; break;
void traversal(Event event) {	switch (event.detail) {		case SWT.TRAVERSE_ESCAPE:		case SWT.TRAVERSE_RETURN:		case SWT.TRAVERSE_TAB_NEXT:		case SWT.TRAVERSE_TAB_PREVIOUS:			event.doit = true;			break;		case SWT.TRAVERSE_MNEMONIC:			event.doit = mnemonicTraversal(event);			if (event.doit) event.detail = SWT.TRAVERSE_NONE;			break;		case SWT.TRAVERSE_PAGE_NEXT:		case SWT.TRAVERSE_PAGE_PREVIOUS:			event.doit = pageTraversal(event);			if (event.doit) event.detail = SWT.TRAVERSE_NONE;			break;	}}