Project: Eclipse_Platform_UI
Bug 90389 [Model] Can WorkbenchContentProvider:273 invoke Tree.setRedraw(boolean) less?
Reported: 2005-04-05 18:12:38 | Status: verified fixed

3.1M6, note that this is most visually apparent on motif - open a CVS Repositories view in the Resource perspective - connect to dev.eclipse.org - somewhat quickly: - begin retrieving the org.eclipse.swt project from HEAD - click "Run in Background" - switch to the Navigator view, and the org.eclipse.swt project will be there - expand its top level only, and its only folder child so far should be Eclipse SWT, which takes a while to travel from CVS - if you watch it you'll notice the tree flash a few times, though nothing visually changes in it (not even its vertical scrollbar) This is happening because WorkbenchContentProvider is invoking setRedraw(false) and then setRedraw(true) often without invoking any methods on Tree in between. This causes flash because the Tree needs to do a full redraw whenever it receives setRedraw(true); if nothing has happened since setRedraw(false) then this is an unnecessary redraw(), which is the cause of the flash. Is it possible for WorkbenchContentProvider to somehow determine the nature of the work it's going to do between the setRedraw() invocations and choose to not invoke setRedraw() if appropriate?

Files changed in fix:
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/model/WorkbenchContentProvider.java