Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [DataBinding] set sorter to tableViewer (3.2 version)
[DataBinding] set sorter to tableViewer (3.2 version) [message #310898] Wed, 20 December 2006 17:03 Go to next message
Eclipse UserFriend
Hi! I'm using the 3.2 evolution of the databinding framework in a rcp
client I develop. I'll have to stick to it until 3.3 gets released.
I try to add sorting capabilities to the current binding of tableviewers
and I wonder if I stick to the original intents.
I plan to implement it by subclassing tableViewerDescription to a
SortableTableViewerDescription (and binding would be something like
dbc.bind(sortableTableViewerDescription, tableModelDescription).
Is this the way you would have implemented it?
Re: [DataBinding] set sorter to tableViewer (3.2 version) [message #310909 is a reply to message #310898] Wed, 20 December 2006 23:55 Go to previous message
Eclipse UserFriend
Hi André.

I don't have the code in front of me right now so I apologize if this
sounds uninformed but it's been a while since I looked at the 3.2 code.
But can you not just set the sorter on the viewer after binding? If
memory serves me right the binding just provided change events to the
viewer and updated the viewer. If the binding is invoking the correct
update and refresh events on the viewer it seems like you could just bind
the viewer and set the sorter on the viewer after the binding has
occurred. I don't think that the binding would care about sorting and it
probably wouldn't care about filtering either. But again, I don't have
the code in front of me at the moment.

-brad
Previous Topic:Using IServiceLocator, IServiceHandler iso deprecated getKeyBindingService
Next Topic:Problem: Local site is not updated
Goto Forum:
  


Current Time: Fri Sep 26 19:11:20 EDT 2025

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

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

Back to the top