editor.getControl().getShell().layout(true, true);
editor.getControl().getShell().pack(true);
}
});
ok.setEnabled(false);
b.addStatusChangeListener(new IStatusChangeListener() {
public void statusChanged(IBinding bnd,
CodeAndMessage cm) {
ok.setEnabled(cm.getCode() == 0);