Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 166069 - [painting] Eclipse editors use incorrect background color when scrolling on OS X
Summary: [painting] Eclipse editors use incorrect background color when scrolling on OS X
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Andre Weinand CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-28 10:55 EST by Peter Hagelund CLA
Modified: 2008-08-16 04:02 EDT (History)
2 users (show)

See Also:


Attachments
Screenshot of discoloration (34.38 KB, image/png)
2006-11-28 10:56 EST, Peter Hagelund CLA
no flags Details
Discoloration in Java editor (94.24 KB, image/png)
2006-11-28 10:59 EST, Peter Hagelund CLA
no flags Details
Eclipse configuration information (173.20 KB, text/plain)
2006-11-28 11:08 EST, Peter Hagelund CLA
no flags Details
Discoloration in Java editor with different color (53.76 KB, image/png)
2006-12-01 10:58 EST, Peter Hagelund CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Hagelund CLA 2006-11-28 10:55:14 EST
1. Launch Eclipse. If already running, please quit and restart.
2. Right-click on a directory or package and select New, then File (notice that the parent folder text field has a yellow-ish background.)
3. Type in a name, like foo.txt and click Finish.
4. Add at least 1.5 times the number of lines shown in the editor to the newly created text file. Doesn't matter what it is or whether you type or copy/paste. For a window that shows 35 lines of text, I have to add at least 52 lines for the problem to occur.
5. Now use the page-up/page-down buttons (on a MacBook it's fn+arrown-down and fn+arrow-up) and notice how the background of the scrolled area(s) turn progressively more yellow-ish. This problem does NOT occur if you scroll with the scroll bar or move the cursor with the arrow up/down buttons - it MUST be page-up and page-down.
6. Shut down Eclipse.
7. Launch Eclipse.
8. Open the same file you just created.
9. Scroll up and down using page-up and page-down. Notice the discoloration does not happen.
10. Right-click on a directory or package and select New, then File. Notice again the yellow-ish tint to the parent folder text field.
11. Click Cancel.
12. Click on the text file and scroll up/down again with page-up/page-down and notice the reappearance of the yellow-ish discoloration.
13. Right-click on a directory or package and select New, then File. Now notice the parent folder text field is no longer yellow, but white as expected.
14. Restart Eclipse to "cure" the scroll discoloration.
Comment 1 Peter Hagelund CLA 2006-11-28 10:56:58 EST
Created attachment 54639 [details]
Screenshot of discoloration

The discoloration after a couple of scroll up/down
Comment 2 Peter Hagelund CLA 2006-11-28 10:59:00 EST
Created attachment 54640 [details]
Discoloration in Java editor

The same type of discoloration in the Java editor
Comment 3 Peter Hagelund CLA 2006-11-28 11:05:27 EST
This problem also exists in previous versions of Eclipse (I've seen it on most of the 3.2Mx series).
I've seen this problem on both Intel (MacBook Pro) and PPC (iMac G5)
Comment 4 Peter Hagelund CLA 2006-11-28 11:08:17 EST
Created attachment 54641 [details]
Eclipse configuration information

Text file containing the Eclipse configuration properties
Comment 5 Dani Megert CLA 2006-11-30 10:44:41 EST
André, can you take a look at this on the MAC? Thanks.
Comment 6 Peter Hagelund CLA 2006-12-01 10:58:48 EST
Created attachment 54894 [details]
Discoloration in Java editor with different color

After adding some JUnit test cases, a different discoloration shows up in the Java editor
Comment 7 Eclipse Webmaster CLA 2007-07-29 09:21:13 EDT
Changing OS from Mac OS to Mac OS X as per bug 185991
Comment 8 Dani Megert CLA 2008-06-18 05:58:51 EDT
Ping. André is this still an issue with 3.4 RC4?
Comment 9 Heath Borders CLA 2008-08-15 15:19:41 EDT
I've been running 3.3 and now 3.4 on leopard, and I've never seen this.  I just ran through the test case described, and I didn't see it.

Running on intel 10.5.4
Version: 3.4.0
Build id: I20080617-2000
Comment 10 Dani Megert CLA 2008-08-16 04:02:04 EDT
See previous comment.