if (arrowBar.isVisible()) {
if (scroll_leftVisible() || scroll_rightVisible()) {
private void setButtonBounds() {		updateArrowBar();	updateCloseBar();		int tabHeight = getTabHeight();	Rectangle area = super.getClientArea();		boolean leftVisible = scroll_leftVisible();	boolean rightVisible = scroll_rightVisible();	if (leftVisible || rightVisible) {		Point size = arrowBar.computeSize(SWT.DEFAULT, tabHeight);		int x = area.x + area.width - borderRight - size.x;		int y = (onBottom) ? area.y + area.height - borderBottom - size.y : area.y + borderTop;				arrowBar.setBounds(x, y, size.x, size.y);		ToolItem[] items = arrowBar.getItems();		items[0].setEnabled(leftVisible);		items[1].setEnabled(rightVisible);		arrowBar.setVisible(true);	} else {		arrowBar.setVisible(false);	}		// When the close button is right at the edge of the Tab folder, hide it because	// otherwise it may block off a part of the border on the right	if (showClose) {		inactiveCloseBar.setVisible(false);		CTabItem item = getSelection();		if (item == null) {			closeBar.setVisible(false);		} else {			int toolbarHeight = tabHeight - CTabItem.TOP_MARGIN - CTabItem.BOTTOM_MARGIN + 2; // +2 to ignore gab between focus rectangle			Point size = closeBar.computeSize(SWT.DEFAULT, toolbarHeight);			int x = item.x + item.width - size.x - 1;			int y = item.y + Math.max(0, (item.height - toolbarHeight)/2);					closeBar.setBounds(x, y, size.x, toolbarHeight);			if (arrowBar.isVisible()) {				Rectangle arrowRect = arrowBar.getBounds();				arrowRect.width += borderRight;				closeBar.setVisible(!arrowRect.contains(x, y));			} else {				closeBar.setVisible(true);			}		}	}}