You should be able to achieve it by extending the TextCellEditor(Composite parent, int style)
constructor in your own extension of TextCellEditor
.
Then, when calling createCellEditorOn(Composite composite)
in your DirectEditManager
extension class, let it return new YOURTextCellEditor(composite, SWT.SINGLE)
.
Verbosely:
Your own implementation of TextCellEditor
's constructor
public YOURTextCellEditor(Composite parent, int style) {
super(parent, style);
}
createCellEditorOn(Composite composite)
in your implementation of DirectEditManager`
@Override
protected CellEditor createCellEditorOn(Composite composite) {
return new YOURTextCellEditor(composite, SWT.SINGLE);
}
Perhaps check if you return a new instance of YOURTextCellEditor
with SWT.MULTI
or SWT.MULTI|SWT.WRAP
or similar, this makes your text cell editor's SWT control a multi-line text widget (cf. SWT Widgets overview).