layout();
layout(false);
public void setWeights(int[] weights) {	checkWidget();	Control[] cArray = getControls(false);	if (weights == null || weights.length != cArray.length) {		SWT.error(SWT.ERROR_INVALID_ARGUMENT);	}		int total = 0;	for (int i = 0; i < weights.length; i++) {		if (weights[i] < 0) {			SWT.error(SWT.ERROR_INVALID_ARGUMENT);		}		total += weights[i];	}	if (total == 0) {		SWT.error(SWT.ERROR_INVALID_ARGUMENT);	}	for (int i = 0; i < cArray.length; i++) {		cArray[i].setData(LAYOUT_RATIO, new Long((((long)weights[i] << 16) + total - 1) / total));	}	layout();}