Eclipse RCP - ILazyTreeContentProvider implementation is unexpectedly eager

社会主义新天地 提交于 2019-11-30 14:11:37

I have compared my example with this one And I've found only one difference that made all the difference:

v.setUseHashlookup(true); //v is the TreeViewer

What the method states in its doc:

Configures whether this structured viewer uses an internal hash table to speeds up the mapping between elements and SWT items. This must be called before the viewer is given an input (via setInput).

Now the content provider is actually lazy. Only paints the visible items, not ALL of them.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!