Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363280 - SWT: Multi-Column sort does not work
Summary: SWT: Multi-Column sort does not work
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Andreas Hoegger CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-09 05:26 EST by Beat Schwarzentrub CLA
Modified: 2021-08-19 11:11 EDT (History)
1 user (show)

See Also:


Attachments
SwtScoutTable.java.patch (3.92 KB, patch)
2011-11-09 05:29 EST, Beat Schwarzentrub CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Beat Schwarzentrub CLA 2011-11-09 05:26:58 EST
Build Identifier: 

In Swing-Scout, multiple sorting columns can be combined by holding the Ctrl key while clicking a column header. This feature is quite handy when browsing large lists of data. It works similar to the "ORDER BY" clause in SQL.

In SWT, that feature does not work, the Ctrl key is completely neglected, and "only" a normal sort operation is applied. This is likely due to a former SWT bug that did not include the modifier keys in the SelectionEvent (https://bugs.eclipse.org/bugs/show_bug.cgi?id=65679). That bug is fixed since 2009, so Scout should use the now-working stateMask to implement the behaviour described above.

I will add a patch for SwtScoutTable.java that enables the multi-sort behaviour and removes the TODO. Because SWT is not able to indicate more than one column as "sorted" (i.e. draw a small up/down arrow in the column header), the patch adds an indicator text ("[a-z]" and "[z-a]", respectively) to the column header for all sorting columns except the first one.

Reproducible: Always
Comment 1 Beat Schwarzentrub CLA 2011-11-09 05:29:25 EST
Created attachment 206660 [details]
SwtScoutTable.java.patch
Comment 2 Matthias Zimmermann CLA 2017-06-06 05:31:59 EDT
SWT support for Scout is no longer maintained in the open source domain. In case you need bugfixes for releases prior to Neon consider commercial options.