Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342723

Summary: Provide improved sorting mechanism
Product: z_Archived Reporter: Patrick Pastoor <pp>
Component: NebulaAssignee: Donald Dunne <donald.g.dunne>
Status: CLOSED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: pp
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

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.