JFace: difference between ITreeContentProvider and ILazyTreeContentProvider
Posted
by Alexey Romanov
on Stack Overflow
See other posts from Stack Overflow
or by Alexey Romanov
Published on 2010-04-25T18:39:39Z
Indexed on
2010/04/25
18:43 UTC
Read the original article
Hit count: 586
After reading JavaDoc for ILazyTreeContentProvider and Virtual Tables and Trees I am a bit confused. Do they really mean that with a simple ITreeContentProvider all elements have to be loaded when the tree is created? I expected that getChildren()
would only be called when expanding an element (and hasChildren()
to be called to determine whether the plus sign should be shown). Or are they intended for the case where some elements have many children?
© Stack Overflow or respective owner