Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to add a column to a tableviewer ?
How to add a column to a tableviewer ? [message #458909] Tue, 26 July 2005 10:21 Go to next message
Vincent Etter is currently offline Vincent EtterFriend
Messages: 72
Registered: July 2009
Member
Hello !

I'm using a tableviewer and so far only needed one column. Now I want to
add a column with a button on each row. How can I do that ?

What do I have to do with my existing content and label providers ? Do I
have to set one label and content provider for each column ?

Thanks !

Vincent
Re: How to add a column to a tableviewer ? [message #458997 is a reply to message #458909] Thu, 28 July 2005 14:57 Go to previous message
Kalman Hazins is currently offline Kalman HazinsFriend
Messages: 76
Registered: July 2009
Member
Your content provide will stay the same and but your label provider must
implement ITableLabelProvider. It's that simple. You will also need to
create TreeColumn objects for the new columns.

HTH,
- Kalman

"Vincent Etter" <vincent.etter@gmail.com> wrote in message
news:dc52qq$knj$3@news.eclipse.org...
> Hello !
>
> I'm using a tableviewer and so far only needed one column. Now I want to
> add a column with a button on each row. How can I do that ?
>
> What do I have to do with my existing content and label providers ? Do I
> have to set one label and content provider for each column ?
>
> Thanks !
>
> Vincent
Previous Topic:why the cotainer of a wizard is null?
Next Topic:Newbie question for developing with SWT
Goto Forum:
  


Current Time: Tue Oct 27 06:19:26 GMT 2020

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

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

Back to the top