Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » JFace Databinding(Snippet032 TableViewerColumnEditing)
JFace Databinding [message #1251884] Thu, 20 February 2014 18:03
Guenther Mahr is currently offline Guenther Mahr
Messages: 12
Registered: September 2011
Junior Member
Hi,

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 =
CellEditorProperties.control().value(WidgetProperties.text());

Replace WidgetProperties.text() with WidgetProperties.text(SWT.Modify) and everything works as expected!

Kind Regards,
G√ľnther
Previous Topic:Custom filename validation after copy paste into same directory
Next Topic:How to add the functionnality of creating an XMl within an RCP ?
Goto Forum:
  


Current Time: Sat Oct 25 19:01:10 GMT 2014

Powered by FUDForum. Page generated in 0.02243 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software