Skip to main content


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 MahrFriend
Messages: 36
Registered: September 2011
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: Tue Mar 19 09:03:53 GMT 2024

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

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

Back to the top