final SashForm sash = new SashForm(form.getBody(), SWT.NULL);
GridData gd = new GridData(GridData.FILL_BOTH);
gd.widthHint = 10;
gd.heightHint = 10;
sash.setLayoutData(gd);
sash.addControlListener(new ControlAdapter() {
public void controlResized(ControlEvent e) {
Point size = sash.getSize();
if (size.x>size.y)
sash.setOrientation(SWT.HORIZONTAL);
else