Reputation: 43
is there a way to specify different cell editor for each cell in jface tableviewer, I know that the cell editor is specified on a column basis, but I want to specify the cell editor on a cell basis, is there a workaround or is it possible?
Upvotes: 0
Views: 1283
Reputation: 3621
EditingSupport
that you set to ViewerColumn
is dynamic. When cell edit is triggered, the framework calls CellEditor getCellEditor(Object element)
method on your editing support implementation. In that method you can choose to return any editor depending on the passed row element.
Upvotes: 2