if (items.length > 0) { CTabItem item = items[items.length - 1]; if (item.x + item.width < getRightItemEdge()) { int first = firstIndex; setLastIndex(items.length - 1); if (first != firstIndex) changed = true; } }
boolean updateItems() {	boolean changed = false;	boolean oldShowChevron = showChevron;	if (setItemSize()) changed = true;	if (setItemLocation()) changed = true;	if (items.length > 0) {		CTabItem item = items[items.length - 1];		if (item.x + item.width < getRightItemEdge()) {			int first = firstIndex;			setLastIndex(items.length - 1);			if (first != firstIndex) changed = true;		}	}	setButtonBounds();	if (selectedIndex != -1) {		int top = firstIndex;		showItem(items[selectedIndex]);		if (top != firstIndex) changed = true;	}	if (showChevron != oldShowChevron) changed = true;	if (changed && toolTipShell != null) {		Point pt = getDisplay().getCursorLocation();		pt = toControl(pt);		if (!updateToolTip(pt.x, pt.y)) hideToolTip();	}	return changed;}