|Databinding with CellEditor [message #542653]
||Fri, 25 June 2010 14:31
Registered: June 2010
I've created a table with an table viewer (content provider, ...). I have a fix number of 3 rows and 5 columns.
Now I need to enable cell editing in one column for each row. Therefore I added a TextCellEditor to the column.
Editing works fine, but I want to access the cells with databinding.
The TextCellEditor is the target, the model is a bean.
So I've to get all the TextCellEditors:
CellEditor zelleditoren = tblviewer.getCellEditors();
Then I create an ObservableValue for row 3 which is my TextCellEditor:
IObservableValue obs = SWTObservables.observeText((Text) zelleditoren.getControl(), SWT.Modify);
Then I added this value to my DatabindingContext.
But here is my problem: I can only specify one bean property for this value.
So the text of the last cell I edit is written into my model. But I need one property for one cell!
Is this possibly with CellEditors?
Thanks in advance
Powered by FUDForum
. Page generated in 0.01989 seconds