[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: reset itemcount in tableviewer


Oh, I just found your post, I'm doing the same, reducing item count is not a problem for me but I'm not using so many items yet. But there is something I don't understand: if the table is virtual why the items are deleted they shouldn't exist, only the items being shown, the height of the table/item height should exist, right?


I've implemented my own filtering in the content provider, I call refresh when the filter configuration changes then in the updateItem method I set the item count of the viewer but never allowing it to be zero because if that happens updateItem is not called anymore.