Alternatives to DeferredContentProvider for supporting filtering in tables with SWT.VIRTUAL

淺唱寂寞╮ 提交于 2020-01-02 09:52:38

问题


In my project, I have a TableViewer which needs to show more than 100,000 items and also filter them. Without SWT.VIRTUAL the table takes multiple seconds to display. When trying to use SWT.VIRTUAL, however, I have the following problem:

Just implementing ILazyContentProvider as one would usually do is problematic, since it is incompatible with the usual filtering mechanisms in TableViewer and I would therefore have to implement the entire filtering mechanism myself.

In my searches, I have found DeferredContentProvider which should solve the problem. But DeferredContentProvider still has many known bugs, one of which (146799) definitely already affects me, so I cannot use that.

My question now is: Is there any good alternative I should look at, or do I myself have to implement ILazyContentProvider in a way that handles filtering on its own? If so, what are my chances of not running into the same problems the implementors of DeferredContentProvider ran into regarding refresh problems? Does anybody have any experience with something similar?

来源:https://stackoverflow.com/questions/23755960/alternatives-to-deferredcontentprovider-for-supporting-filtering-in-tables-with

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