Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 33835

Summary: RC1 - Flashing and redrawing in Hierarchy View
Product: [Eclipse Project] Platform Reporter: Steve Northover <snorthov>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: Kevin_McGuire, martinae, Tod_Creasey
Version: 2.1   
Target Milestone: 2.1 RC2   
Hardware: PC   
OS: Linux-Motif   
Whiteboard:

Description Steve Northover CLA 2003-03-05 09:36:00 EST
NOTE:  My machine is slow: PII-433-256M

1) Turn on single click (not sure this matters)
2) Turn on CVS decorators
3) Open a Hierarchy View on a package (I used org.eclipse.swt.graphics)
4) Close all editors
5) Select an item in the hierarchy (eg FontData)
6) Select the item below (eg FontMetrics)
7) Observe flashing and flickering of both image and text for both classes in 
Hierarchy View tree
8) Click around on classes to see more flashing

Probably happens on everywhere but is most obvious on a slow machine running 
Motif.  The classes are binary but this may not matter.
Comment 1 Veronika Irvine CLA 2003-03-05 10:59:03 EST
Adding Kevin McGuire to CC list as this may be a CVS issue.
Comment 2 Martin Aeschlimann CLA 2003-03-05 11:19:53 EST
The treeveiwer does an unnecessary refresh even image and text are the same

TreeViewer.doUpdateItem
String oldText= item.getText();
String text= lprovider.getText(data);
if (text != null && !text.equals(oldText)) {
   item.setText(text);
}
Comment 3 Kevin McGuire CLA 2003-03-05 12:02:02 EST
We just respond to deltas, so the question will be "Who is generating a 
needless delta?"
Comment 4 Martin Aeschlimann CLA 2003-03-06 05:09:25 EST
The update comes from us. When an editor is opened, all elements of the 
corresponding compilation unit have to update as we change from markers to 
annotations. See also bug 33904

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