Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » SWT table widget and multi column sorting(table widget multi column sorting)
SWT table widget and multi column sorting [message #1699882] Sun, 28 June 2015 12:54 Go to next message
Mick Miralas is currently offline Mick MiralasFriend
Messages: 13
Registered: June 2015
Junior Member
Hello,

I want to make the standard SWT table widget support multi column sorting.
Searching on the web didn't lead to useful results. The Nebula project should be the last option.
I guess I need a comparator chain, but how do I realize aspects like let columns appear blue when marked or mark multiple columns by pressing shift key and left mouse button?

Any examples are much appreciated.

Thank you very much!

Regards,
Mick
Re: SWT table widget and multi column sorting [message #1719995 is a reply to message #1699882] Wed, 13 January 2016 16:01 Go to previous message
Markus Krug is currently offline Markus KrugFriend
Messages: 2
Registered: January 2016
Junior Member
Hi ( i assume you use a JFace TableViewer)

what about using a SelectionListener on the TableViewer and use the setData() method to update what columns are marked, then use a customized ViewerComparator and get the previously marked Data of the table in the compare method.
At last you can implement your compare method as wanted
Previous Topic:MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.e4.ui.workbench.swt&quo
Next Topic:Making Eclipse with special configuration
Goto Forum:
  


Current Time: Sun Sep 22 12:35:24 GMT 2024

Powered by FUDForum. Page generated in 0.04033 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top