Community
Participate
Working Groups
Hello everyone, While browsing some JFace snippets, I found in Snippet034CellEditorPerRow.java a suggestion to use EditingSupport instead of CellEditor. If EditingSupport is newer and should be used instead of CellEditor (for 3.3 and above), would be the case to deprecate CellEditor? Regards.
CellEditors are not deprecated Viewer#setCellEditors() is!
(In reply to Thomas Schindl from comment #1) > CellEditors are not deprecated Viewer#setCellEditors() is! In this case, I think the Snippet is suggesting to use EditingSupport for a specific purpose instead of using it as a replacement for CellEditor, right?
(In reply to Jeanderson Candido from comment #2) > (In reply to Thomas Schindl from comment #1) > > CellEditors are not deprecated Viewer#setCellEditors() is! > > In this case, I think the Snippet is suggesting to use EditingSupport for a > specific purpose instead of using it as a replacement for CellEditor, right? We should fix the snippet description and remove the usage of Viewer#setCellEditors() in the snippets. I mark this one as WONTFIX, as we are not deprecating CellEditor.
You are mixing things - there are 2 APIs to add inline editing: Viewer#setCellEditors and the new extremly flexible EditingSupport API!
Thank you Thomas and Lars for the clarification.