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:product launch and feature dependencies
Next Topic:Gradle as Build Tool for Eclipse plugin development
Goto Forum:
  


Current Time: Thu Nov 23 09:44:06 GMT 2017

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

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