Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 39661 - Junit test counters do not repaint correctly [JUnit]
Summary: Junit test counters do not repaint correctly [JUnit]
Status: RESOLVED DUPLICATE of bug 71765
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 trivial (vote)
Target Milestone: 3.0   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 71749 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-04 19:40 EDT by McClain Looney CLA
Modified: 2004-08-11 06:52 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description McClain Looney CLA 2003-07-04 19:40:29 EDT
Junit test counters don't repaint their backgrounds properly on linux. Rest of 
the widget background color is "sand", the background behind the test counters 
is white.  
 
Not sure if this is a swt or jdt bug, move as appropriate. 
 
Small but annoying.
Comment 1 Dirk Baeumer CLA 2003-07-07 06:30:24 EDT
Could be SWT or an event queue problem since some widgets require a "active" 
event queue for repainting.

Comment 2 Erich Gamma CLA 2003-07-07 08:17:38 EDT
Is this a repaint/refresh problem, or do the labels always show up in a white 
background?

The test counters are read only text fields, could it be that white is the 
standard background color for text fields on GTK?
 
Comment 3 McClain Looney CLA 2003-07-07 09:41:38 EDT
They are always white as far as I can tell. Shouldn't they be label widgets as 
opposed to textareas (i have no clue what the swt equivalents are)?  The white 
background really makes for a shoddy presentation on linux. 
Comment 4 McClain Looney CLA 2003-07-07 12:50:09 EDT
I did some poking around in the src, and indeed, swt Text objects are used for 
displaying the counters, additionally, background is never explicitly set on 
the Text objects.  
 
Would a solution be possible by just setting the bg color on the Text widget? 
Or should Labels be used instead 
 
see org.eclipse.jdt.internal.junit.CounterPanel.java line 60 or so 
Comment 5 Erich Gamma CLA 2003-07-08 04:38:33 EDT
>Shouldn't they be label widgets as opposed to textareas 
they have to be text areas otherwise the UI isn't accessible, since you cannot 
tab to the counters.

Will try setting the background.
Comment 6 Erich Gamma CLA 2003-07-08 05:14:05 EDT
yep, setting the background works.
Comment 7 McClain Looney CLA 2004-08-11 03:50:20 EDT
*** Bug 71749 has been marked as a duplicate of this bug. ***
Comment 8 McClain Looney CLA 2004-08-11 03:50:54 EDT
this is still an issue on osx. reopening. 
Comment 9 Erich Gamma CLA 2004-08-11 04:25:46 EDT
Assigning to Andre to check whether this is a general SWT issue.
Comment 10 Andre Weinand CLA 2004-08-11 04:40:40 EDT
Read only text fields look wrong on Mac OS X. Moving to SWT.
Comment 11 Andre Weinand CLA 2004-08-11 06:52:43 EDT

*** This bug has been marked as a duplicate of 71765 ***