Bug 114660

Summary: [Viewers] Add automatic support for table sorting in both directions
Product: [Eclipse Project] Platform Reporter: chris <chris_42>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: tom.schindl
Version: 3.2Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Part of sorting framework
none
Part of sorting framework
none
Part of sorting framework
none
"snippet kind" demo of sorting framework none

Description chris CLA 2005-11-01 16:52:21 EST
As I played around with the new sorting mechanism, I realized that there is no
support for easy sorting in both directions, i.e., if I want to sort a column
with numbers in decreasing and increasing order, I have to write two
ViewerSorter implementations.

I came up with a solution which works pretty good for me, so I suggest adding it
to JFace. Maybe it's just to small and easy, so it doesn't make sense to be add
it to the platform, but that's up to you...
Comment 1 chris CLA 2005-11-01 16:55:27 EST
Created attachment 29113 [details]
Part of sorting framework
Comment 2 chris CLA 2005-11-01 16:55:59 EST
Created attachment 29114 [details]
Part of sorting framework
Comment 3 chris CLA 2005-11-01 16:56:20 EST
Created attachment 29115 [details]
Part of sorting framework
Comment 4 chris CLA 2005-11-01 16:57:05 EST
Created attachment 29116 [details]
"snippet kind" demo of sorting framework
Comment 5 chris CLA 2005-11-16 12:04:11 EST
I've implemented some small enhancements to this "framework": You can configure
the default sorting direction of each column, and you can choose if a column
should remember its last sorting direction or not.

As I don't want to flood anybodys mailbox by uploading my changes, I let you
know this way. If anybody is interested in the code, just drop me an email - I'm
happy to send you the current version (or upload it if you want).
Comment 6 Thomas Schindl CLA 2007-06-26 13:41:21 EDT
we should move all discussion on this to one bug because currently we have 4 I know of:
- bug #182791
- bug #166153
- bug #170187
- this one

If you want you can hand over the resulting bug to me because I'm eager on implementation this kind of function in 3.4. By the way we also have a snippet which might be a starting point.
Comment 7 Boris Bokowski CLA 2007-06-26 23:07:50 EDT
(In reply to comment #6)
> If you want you can hand over the resulting bug to me

Sure - go ahead and mark as duplicate / assign to you as you see fit.
Comment 8 Boris Bokowski CLA 2008-05-02 14:57:02 EDT
Mass update - removing 3.4 target. This was one of the bugs I marked for investigation (and potential fixing) in 3.4 but I ran out of time. Please ping on the bug if fixing it would be really important for 3.4, and does not require API changes or feature work.
Comment 9 Boris Bokowski CLA 2009-11-26 09:52:57 EST
Hitesh is now responsible for watching bugs in the [Viewers] component area.
Comment 10 Eclipse Webmaster CLA 2019-09-06 15:32:56 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.

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.