问题
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