- Code: Select all
CellEditor cellEditor = new TextCellEditor(projectsTableViewer.getTable());
IValueProperty cellEditorProperty = CellEditorProperties.control().value(WidgetProperties.text());
IBeanValueProperty valueProperty = BeanProperties.value("fullName");
fullNameColumnViewer.setEditingSupport(ObservableValueEditingSupport.create(projectsTableViewer, bindingContext, cellEditor, cellEditorProperty, valueProperty));
However, this does not work for reasons currently being debated here https://bugs.eclipse.org/bugs/show_bug.cgi?id=297495.
The code needs to be modified to pass "SWT.Modify" to WidgetProperties.text(). Making this change manually causes the modified code to be removed next time the bindings are generated from the WindowBuilder GUI.
I'd be happy to provide further details and submit a more official bug report, let me know what details you need.
In the meantime the workaround is to code these bindings by hand outside of initDataBindings().