Community
Participate
Working Groups
I am filing this bug to collect issues and bugs with the current VIRTUAL support in TableViewer.
Here is the current list of bugs: 97786 [Viewers] - Lazy Virtual Table View Test - duplicate items appear after delete. 144280 [Viewers] VIRTUAL TableViewer element removal doesn't work. 144406 [Viewers] Virtual TableViewer cache is not cleaned-up when removing items.
another one: 150096 [Viewers] Removing an object from a virtual table will NOT decrement the itemCount
Created attachment 48421 [details] patch Not solved yet: if you insert(element, index) in the middle of a VIRTUAL table, I believe the table is not updated correctly. Tests are missing too.
Does anyone have time (and enough motivation) to drive this forward? Without any help, I am not sure if I will end up doing anything for 3.5. So many things to do and so little time...
Hi! I'm not sure whether or not you rate the following behaviour as "bug", but IMHO it's at least a misfeature. So please consider fixing it in future releases or make it dead clear in the documentation ;) Testbed: Source from http://wiki.eclipse.org/JFaceSnippets#Snippet030VirtualLazyTableViewer, running against org.eclipse.swt.widgets.Table (from bundle org.eclipse.swt.win32.win32.x86_3.5.0.v3525.jar) Everything work's well with this "jface snippet". However, if you increasing row number massively (e.g. to 1000000), you get an OutOfMemoryError: Java heap space. private MyModel[] createModel() { MyModel[] elements = new MyModel[1000000]; for (int i = 0; i < 1000000; i++) { elements[i] = new MyModel(i); } return elements; } This is due to the fact that the TableItem[] items in org.eclipse.swt.widgets.Table is populated but does not respect the fact that invisible items need not be stored. Thus, a VIRTUAL table need not to run into this memory leak, but the current implementation does.
Hitesh is now responsible for watching bugs in the [Viewers] component area.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.