I am implementing a JFACE TableViwer where some of the columns are ComboBoxViewerCellEditor.
I am setting ColumnLabelProvider to each column and on addition to the columns with the combo box I am also setting EditingSupport .
The EditingSupport contain encapsulate also a LabelProvider within the ComboBoxViewerCellEditor.
All implementation is based on JFACE MVC i.e. viewers and providers without implementing event listeners.
The behavior is a s follow:
1. launching the table the values displayed OK i.e. column label provider provide the right data.
2. launching the combo box within a column the values in the dropdown list shown OK, and selecting value works fine i.e. combo box shows new value and data model change to new value
3. when leaving the combo box the value (label) shown in the combo box is back the one provided by the column label provider (in #1).
it seems that either I should not use both label providers or somehow refresh the data in the column label provider.
I am attaching my code, please look into columnViewer columnViewerTargetObjectModelAttr which has both ColumnLabelProvider and EditingSupport.