Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342723 - Provide improved sorting mechanism
Summary: Provide improved sorting mechanism
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Nebula (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Donald Dunne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-13 10:35 EDT by Patrick Pastoor CLA
Modified: 2021-07-05 11:38 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Pastoor CLA 2011-04-13 10:35:21 EDT
The current sorting mechanism provided with XViewer does not allow users to disable sorting - but sometimes this is needed eg. for composites which support paging and only show a part of the resultset in the viewer. In this case a click on a column-header should fire sth. like a 'SortingChangedEvent'. Clients can catch this event to build up a new sql-result or to sort the whole resultset and then set the new input to the viewer.

My proposal would be:
- add method to xViewer/xViewerFactory: setSortingType(Enum<Normal, NewInput, None>)
- add method to xViewer/xViewerFactory: addSortingChangedListener(...)
- for type 'NewInput' fire a 'SortingChangedEvent' with the new sorting as data and let clients decide to manipulate/refresh the viewer by adding new input.
Comment 1 Donald Dunne CLA 2011-08-17 17:04:47 EDT
sounds fine to me, if you would like to provide the enhancement via a patch, I'll be happy to take a look
Comment 2 Donald Dunne CLA 2012-04-30 14:25:19 EDT
Provide patch through new bugzilla when able.