Bug 421808 - Table cell highlighting does not work as expected when using a FocusCellOwnerDrawHighlighter
Summary: Table cell highlighting does not work as expected when using a FocusCellOwner...
Status: ASSIGNED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 2.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-15 04:14 EST by Edgar Mueller CLA
Modified: 2013-11-15 11:34 EST (History)
1 user (show)

See Also:


Attachments
RAP Project to reproduce the problem (17.75 KB, application/zip)
2013-11-15 04:14 EST, Edgar Mueller CLA
no flags Details
RCP project where highlighting does work. (16.91 KB, application/zip)
2013-11-15 04:16 EST, Edgar Mueller CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Edgar Mueller CLA 2013-11-15 04:14:59 EST
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.
Comment 1 Edgar Mueller CLA 2013-11-15 04:16:42 EST
Created attachment 237485 [details]
RCP project where highlighting does work.
Comment 2 Ralf Sternberg CLA 2013-11-15 11:34:27 EST
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.