Community
Participate
Working Groups
To reproduce: create the structure: folder:d1 file: a.txt contents: aaa bbb folder:d2 file: a.txt contents: aaa ccc bbb file: b.txt contents: bbb Click both folders > compare with each other, double-click b.txt: one side has a white background that it shouldn't have. Now, double-click a.txt: that same side still has the white background (even having text). I think that the issue is that in org.eclipse.compare.internal.MergeSourceViewer.setEnabled(boolean), the MergeSourceViewer does: public void setEnabled(boolean enabled) { if (enabled != fEnabled) { fEnabled= enabled; StyledText c= getSourceViewer().getTextWidget(); if (c != null) { c.setEnabled(enabled); Display d= c.getDisplay(); c.setBackground(enabled ? d.getSystemColor(SWT.COLOR_LIST_BACKGROUND) : null); } } } I think the fix would be simply removing the setBackground from that function (not sure why it was added on the first place).
Fabio, is this still relevant?
Created attachment 253226 [details] Screenshot showing issue on 4.5m7 Yes, it's still relevant (I'm posting a screenshot)
As a note on the screenshot, the text is unreadable in the left side (there's white foreground on a white background) -- the screenshot doesn't make that explicit because you can't see the text ;)
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
.
New Gerrit change created: https://git.eclipse.org/r/162819
Thanks Fabio for reporting.
Gerrit change https://git.eclipse.org/r/162819 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.team.git/commit/?id=54dfd3f5c5359b90090acc2330708ee31153f5c0