Bug 472052 - Selected table cell is not visible on Mac OS X
Summary: Selected table cell is not visible on Mac OS X
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Table (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Mac OS X
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2015-07-07 09:06 EDT by Maxime Porhel CLA
Modified: 2021-03-05 19:48 EST (History)
2 users (show)

See Also:


Attachments
Reproduction case (3.47 KB, application/zip)
2015-07-07 09:06 EDT, Maxime Porhel CLA
no flags Details
Table selection (13.86 KB, image/png)
2015-07-07 09:14 EDT, Maxime Porhel CLA
no flags Details
Table selection after a click in a view (15.27 KB, image/png)
2015-07-07 09:15 EDT, Maxime Porhel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Porhel CLA 2015-07-07 09:06:16 EDT
The content of cells with a white background is not visible when the current line is selected.

See Bug 460810, for entry points. The same bug has simply been corrected on Tree by removing DTableEraseItemListener which had no sense on Tree (no columns)

It will have to be corrected for Tables.
This issue occurs on Mac Os but like the Bug 460810, it might also occur on some Linux.
Comment 1 Maxime Porhel CLA 2015-07-07 09:06:33 EDT
Created attachment 255022 [details]
Reproduction case
Comment 2 Maxime Porhel CLA 2015-07-07 09:08:10 EDT
Steps to reproduce: 
 . Open the tables from the attached project.
 . Try to select a line or a cell: the cells of the selected line are blank.

They have a white background and white label.
Comment 3 Maxime Porhel CLA 2015-07-07 09:10:35 EDT
Note that from second step, if you use tab or clic in any view outside the editor, the selection color change and we can see the label of the cell.
Comment 4 Maxime Porhel CLA 2015-07-07 09:14:44 EDT
Created attachment 255024 [details]
Table selection
Comment 5 Maxime Porhel CLA 2015-07-07 09:15:12 EDT
Created attachment 255025 [details]
Table selection after a click in a view
Comment 6 Maged Elaasar CLA 2018-06-07 00:45:33 EDT
Is there a plan to fix this soon? the white background on selected rows in a table (in MacOS) is pretty annoying to users. Thanks.
Comment 7 Eclipse Genie CLA 2018-07-24 08:57:36 EDT
New Gerrit change created: https://git.eclipse.org/r/126552
Comment 8 Paul Gaspardo CLA 2021-03-05 19:48:55 EST
From our investigation this appears to be due to the event.detail SWT.BACKGROUND flag not being set to false, causing the default background color to be painted over the background DTableEraseItemListener applies.

We implemented a workaround that fixes the problem for us by wrapping the DTableEraseItemListener with a new listener that unsets the SWT.BACKGROUND flag:

https://github.com/opencaesar/oml-rosetta/blob/54841420cbae413c3917bda84748e9f145815781/io.opencaesar.rosetta.sirius/src/io/opencaesar/rosetta/sirius/BlankSelectedLineWorkaround.java#L71