Project: Eclipse_Platform_UI
Bug 289409 [Viewers] ILazyTreePathContentProvider documentation request
Reported: 2009-09-14 22:20:10 | Status: verified fixed

I believe the JavaDoc for ILazyTreePathContentProvider#updateElement() should mention that the implementation can call TreeViewer#setHasChildren() instead of TreeViewer#setChildCount() if the content provider can more efficiently determine the has-children status than it can the actual number of children. This optimization was made possible by 156883. I think it needs to be advertised so clients can take advantage of it in their implementation of ILazyTreePathContentProvider#updateElement(). In fact, I think clients that use ILazyTreeContentProvider also have access to that optimization. If so, that JavaDoc should be updated, too.

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ILazyTreeContentProvider.java bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ILazyTreePathContentProvider.java