Community
Participate
Working Groups
Created attachment 224729 [details] Runnable snippet to reproduce the problem Steps To Reproduce: 1. Create virtual TableViewer with ArrayContentProvider. 2. Set ArrayList<String> containing few elements as its input. 3. Select an element. 4. Add another element at the beginning of the input list and refresh the viewer. You will see that selection is at the same index, although it should move down with the previous selected element. If you create the TableViewer with SWT.FULL_SELECTION, it works fine i.e. the selection stays on the selected element and selectionChangedEvent is not being fired. I am attaching a stand alone java file TestCase that has the code snippet to recreate this problem.
With Version 3.7.2 and Windows XP Pro Service Pack 3 the selection is never preserved even with the SWT.FULL_SELECTION style.
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. If the bug is still relevant, please remove the stalebug whiteboard tag.