Community
Participate
Working Groups
Build: 3.7 M3 I am occasionally (at least once a day) seeing problems with the painting of mark occurrences in the Java editor. The general steps are: - Select a field - Scroll the editor quickly to view occurrences - Painting of the occurrences is messed up. The highlighting appears within the correct bounds for the reference, but is blurred or drawn in the wrong place. I can't consistently reproduce, and any change such as highlighting with the mouse or scrolling the editor to force a paint causes the problem to go away.
Created attachment 182246 [details] Screen shot
Created attachment 182247 [details] Mark occurrence preference settings
I can actually reproduce this quite easily with the steps outlined above: - Select a field in a class with multiple pages of content - Scroll down by dragging the scrollbar until the field appears. Scrolling fast or slow doesn't matter. In fact it looks even worse when you scroll to it closer.
I'll take a look...
This looks like an SWT bug when (re-)drawing TextStyle.borderStyle. I could easier reproduce by: 1. open a class (e.g. StyledText) 2. scroll down via scroll bar thumb 3. select a variable that appears often in the method 4. scroll up, so that they disappear 5. scroll down again ==> cheese
This is a major regression introduced in 3.7 M3. Very simple steps: 1. paste the snippet listed below 2. select the method declaration in the editor 3. scroll (it doesn't matter whether via mouse wheel, scroll bar or key board, but via scroll bar it cheese is biggest) ==> cheese --- %< --- public class Cheese { void cheese() { cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); cheese(); } } --- %< ---
Created attachment 182377 [details] patch Naive me, introduced this bug fixing Bug 305672. It is okay to reduce the drawing rect in the width using the clip, but not for the height.
Fixed in HEAD > 2010-11-04 Please verify. Thank you
Created attachment 182406 [details] horizontal cheese Solid borders are looking good now, but dashed and dotted borders still show some cheese when scrolling horizontally. I guess the horizontal clipping needs to be aligned to the length of the drawn pattern.
oh, now I remember why I started fixing bug 305672 and stopped - reducing the rect to correct phase in the dot/dash pattern is not fun. Lets try again.
Created attachment 182422 [details] patch
Fixed in HEAD > 2010-NOV-04
Thanks, verified in HEAD.