Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » multiple TableViewer sort
multiple TableViewer sort [message #460279] Mon, 18 December 2006 20:39 Go to next message
Eclipse UserFriend
Originally posted by: devals9.hotmail.com

Hello,
I have 2 tableViewer which are dependent on each other. I did this because I wanted to have a first fixed column. This is working fine. Now how do I do the sorting.
When I click on a column all the columns from both the table should be sorted.
Only one table gets sorted. Is there any listener to listen to sort events ?

Any suggestions?

Thanks
Deval
Re: multiple TableViewer sort [message #460295 is a reply to message #460279] Tue, 19 December 2006 04:45 Go to previous message
Eclipse UserFriend
Hi,

you need to add selection listener on the table-column and set the
apropriate sorter on both of your viewers! By the way I've written a
TableViewer which should handle fixed columns transparently for you.

http://publicsvn.bestsolution.at/repos/java/at.bestsolution. jface/trunk/src/at/bestsolution/jface/viewers/FixedColumnTab leViewer.java

But I haven't tested in a real world application.

Tom

Deval schrieb:
> Hello,
> I have 2 tableViewer which are dependent on each other. I did this because I wanted to have a first fixed column. This is working fine. Now how do I do the sorting.
> When I click on a column all the columns from both the table should be sorted.
> Only one table gets sorted. Is there any listener to listen to sort events ?
>
> Any suggestions?
>
> Thanks
> Deval
Previous Topic:print preview action
Next Topic:Resize views in a perspective
Goto Forum:
  


Current Time: Tue Mar 25 19:12:24 EDT 2025

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

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

Back to the top