Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » HeaderProvider for the TableViewer
HeaderProvider for the TableViewer [message #550636] Tue, 03 August 2010 23:48 Go to next message
Jon Svede is currently offline Jon SvedeFriend
Messages: 83
Registered: July 2009
Member
This past week I was struggling to figure out how to change the table header and columns of a TableViewer. I eventually figured out how to do it, but it requires working with the Table directly which seems to go against the grain of the TableViewer and JFace in general.

It occurred to me that there should be an abstraction for this, something like a TableViewerHeaderProvider (or somethign) that is responsible for providing headers based on the input.

My question is, does something like that exist? If not, is there a reason it does not?

Thanks in advance!

Jon
Re: HeaderProvider for the TableViewer [message #550720 is a reply to message #550636] Wed, 04 August 2010 08:18 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

We thought about wrapping e.g. TableColumn#setText() when we created the
TableViewerColumn-API but said that its not really making a whole lot of
sense because we'd have to proxy then all methods on Table/TableColumn.
We decided JFace should not try to completely abstract a way SWT but
provide a convenience API for MVC.

Tom

Am 04.08.10 01:48, schrieb Jon Svede:
> This past week I was struggling to figure out how to change the table
> header and columns of a TableViewer. I eventually figured out how to do
> it, but it requires working with the Table directly which seems to go
> against the grain of the TableViewer and JFace in general.
> It occurred to me that there should be an abstraction for this,
> something like a TableViewerHeaderProvider (or somethign) that is
> responsible for providing headers based on the input.
> My question is, does something like that exist? If not, is there a
> reason it does not?
>
> Thanks in advance!
>
> Jon
Re: HeaderProvider for the TableViewer [message #550848 is a reply to message #550720] Wed, 04 August 2010 13:47 Go to previous message
Jon Svede is currently offline Jon SvedeFriend
Messages: 83
Registered: July 2009
Member
Thanks, that makes sense.

Jon
Previous Topic:ScrolledComposite and lack of method
Next Topic:How can I get 'all' visible nodes in a TreeViewer
Goto Forum:
  


Current Time: Fri Apr 26 07:42:58 GMT 2024

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

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

Back to the top