eclipseeclipse-plugineclipse-rcpnattablenebula

How to skip or not apply cellpainter for a specific cell in NatTable


I am using NatTable tree table in my project. In that table one column is not applicable for parent element. It is applicable only for children. The column uses checkbox CellPainter. Since the parent row does not have that attribute I don't want to apply the cellpainter of the column to that. Is it possible to skip that CellPainter for specific row or cell.

Thanks in Advance, Arun


Solution

  • There is no way to skip. You have to be more explicit in the way you register the painters. Either register the checkbox cell painter only on cells that are applicable, or override the painter configuration for the other cells.