//not be any smaller than 50 pixels.
editor.horizontalAlignment = SWT.LEFT;
editor.grabHorizontal = true;
editor.minimumWidth = 50;
Rectangle r = text.computeTrim(0, 0, 100, text.getLineHeight());
editor.minimumHeight = r.height;
// Open the text editor on the selected row.
editor.setEditor (text, item);