protected CellEditor createDatatypeCellEditor( final Collection<? extends IReference> datatypes, Composite composite) { if (itemPropertyDescriptor.isMultiLine(object)) { return new ExtendedDialogCellEditor(composite, getEditLabelProvider()) { protected DatatypeValueHandler valueHandler = new DatatypeValueHandler(datatypes); @Override protected Object openDialogBox(Control cellEditorWindow) { InputDialog dialog = new MultiLineInputDialog( cellEditorWindow.getShell(), KommaEditUIPlugin.INSTANCE.getString( "_UI_FeatureEditorDialog_title", new Object[] {getDisplayName(), getEditLabelProvider().getText(object)}), KommaEditUIPlugin.INSTANCE.getString("_UI_MultiLineInputDialog_message"), valueHandler.toString(getValue()), valueHandler); return dialog.open() == Window.OK ? valueHandler.toValue(dialog.getValue()) : null; } }; } return new DatatypeCellEditor(datatypes, composite); }