layoutButtons();
public void removeCTabFolderListener(CTabFolderListener listener) {	checkWidget();	if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);	if (tabListeners.length == 0) return;	int index = -1;	for (int i = 0; i < tabListeners.length; i++) {		if (listener == tabListeners[i]){			index = i;			break;		}	}	if (index == -1) return;	if (tabListeners.length == 1) {		tabListeners = new CTabFolderListener[0];		showClose = false;		return;	}	CTabFolderListener[] newTabListeners = new CTabFolderListener[tabListeners.length - 1];	System.arraycopy(tabListeners, 0, newTabListeners, 0, index);	System.arraycopy(tabListeners, index + 1, newTabListeners, index, tabListeners.length - index - 1);	tabListeners = newTabListeners;}