if (size.x <= borderLeft + borderRight || index < firstIndex) { setFirstIndex(index);
int idx = -1; for (int i = 0; i < priority.length; i++) { if (priority[i] == index) { idx = i; break; } } boolean changed = false; boolean oldShowChevron = showChevron; if (mru) { int[] newPriority = new int[priority.length]; System.arraycopy(priority, 0, newPriority, 1, idx); System.arraycopy(priority, idx+1, newPriority, idx+1, priority.length - idx - 1); newPriority[0] = index; priority = newPriority; if (setItemSize()) changed = true; if (setItemLocation()) changed = true;
public void showItem (CTabItem item) {	checkWidget();	if (item == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);	if (item.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);	if (item.isShowing()) return;	Point size = getSize();	int index = indexOf(item);	if (size.x <= borderLeft + borderRight || index < firstIndex) {		setFirstIndex(index);	} else {		setLastIndex(index);	}}