Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 309406 - [Viewers] [viewers] #expandToLevel(Object, level) retrieves all children when virtual
Summary: [Viewers] [viewers] #expandToLevel(Object, level) retrieves all children when...
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 3.5.2+   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 305739 309407
Blocks: 304277
  Show dependency tree
 
Reported: 2010-04-15 20:33 EDT by Boris Bokowski CLA
Modified: 2015-10-28 10:39 EDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Bokowski CLA 2010-04-15 20:33:53 EDT
+++ This bug was initially created as a clone of Bug #305739 +++

3.4.2 (M20090211-1700)

Calling TreeViewer#expandToLevel(Object, level) when using a tree viewer with a lazy content provider and SWT.VIRTUAL style, causes all children to be retrived via org.eclipse.jface.viewers.ILazyTreePathContentProvider.updateElement(TreePath, int). 

I would expect that expanding an element in the tree would only trigger the retrieval of the visible elements, since the tree is virtual. This is noticeable in the debugger when there is a deep stack (say 400 frames). In this case the debugger calls back to replace each element in the tree (once for each child - 400 times in this case).

See related bug 304277, in debug.
Comment 1 Boris Bokowski CLA 2010-04-15 20:34:25 EDT
Fix needs to be applied to R3_5_maintenance.
Comment 2 Markus Keller CLA 2015-10-28 10:39:28 EDT
Closing outdated bug.