Search code examples
eclipse-pluginswttableviewer

Using a DelegatingStyledCellLabelProvider with an ITableLabelProvider


I am trying to style specific cells in my table that have a specific attribute. I have used a DelegatingStyledCellLabelProvider in the past for a Tree structure, and was hoping to do the same here.

However, I can't figure out how to get it working with my ITableLabelProvider.

I saw questions like this one that suggested using IColumnLabelProviders instead of the ITableLabelProvider, but I really don't want to go back and change my code.

Is there anything I can do?


Solution

  • DelegatingStyledCellLabelProvider will not work with the old style ITableLabelProvider as it does not support multiple columns. You must use separate column label providers.