Community
Participate
Working Groups
Created attachment 237484 [details] RAP Project to reproduce the problem When using a FocusCellOwnerDrawHighlighter with a TableViewer, cell highlighting of the most recent edited cell does not work as exepcted. RAP behaves differently as when using the FocusCellOwnerDrawHighlighter with RCP. Please find attached two projects where you can observe the different behaviour. Steps to reproduce: 1. Start the application and select a cell 2. Enter the text 'foo' 3. Lose focus Expected outcome: The background of the cell which contains the text 'foo', should have become red. When removing the FocusCellOwnerDrawHighlighter, cell highlighting does work.
Created attachment 237485 [details] RCP project where highlighting does work.
The original FocusCellOwnerDrawHighlighter uses owner drawing to fake cell selection. As this is not possible in RAP, our implementation sets cell colors instead, overriding any previous cell colors on focus change. Hence, the FocusCellOwnerDrawHighlighter cannot be used together with setting cell colors in RAP (but it does not interfere with item colors). We consider this an accepted limitation for now. To really solve the issue, I think our client implementation would have to support cell selection.