|JFace Databinding [message #1251884]
||Thu, 20 February 2014 18:03
| Guenther Mahr
Registered: September 2011
I was wondering why Snippet032 in org.eclipse.jface.examples.databinding.snippets didn't work as I expected: It shows a table with name and firstName which allows editing but when I actually changed a name in it, then as soon as I left the table cell, my changes were replaced with the original text and where not propagated to the model.
After a few hours... I finally found the reason in the following line:
IValueProperty cellEditorControlText =
Replace WidgetProperties.text() with WidgetProperties.text(SWT.Modify) and everything works as expected!
Powered by FUDForum
. Page generated in 0.05841 seconds