Bug 101060 - [Viewers] DeferredContentProvider.setSortOrder() changes current selection
Summary: [Viewers] DeferredContentProvider.setSortOrder() changes current selection
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks: 509006
  Show dependency tree
 
Reported: 2005-06-21 10:44 EDT by Jörg von Frantzius CLA
Modified: 2020-06-19 18:41 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg von Frantzius CLA 2005-06-21 10:44:59 EDT
(RC3) I re-sort a VIRTUAL TableViewer's contents by calling setSortOrder() on
its DeferredContentProvider. Afterwards, the TableViewer's selection index is
the same as before, even though the previously selected row's index has changed
due to re-sorting. 

The user's expectation will be that after clicking on a column header for
re-sorting, the previously selected row (object) will still be selected. 

This behaviour differs from a normal TableViewer that is provided with a
re-sorted input: it will update the selection to reflect the new position of the
previously selected row (by means of preservingSelection()).
Comment 1 Stefan Xenos CLA 2005-06-27 16:31:59 EDT
Tod: this is another symptom of the problem we discussed earlier. The table
viewer needs to know about the complete set of known elements in order to
maintain the selection when rows are repositioned, but the content provider
doen't have any way to make the information available.

The same thing occurs when rows are inserted or removed from a table with an
active selection.
Comment 2 Boris Bokowski CLA 2009-11-26 09:52:56 EST
Hitesh is now responsible for watching bugs in the [Viewers] component area.
Comment 3 Eclipse Genie CLA 2020-06-19 18:41:44 EDT
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.