This post originated from an RSS feed registered with Java Buzz
by Scott Delap.
Original Post: JFace tip: How to add column headers to a TableViewer
Feed Title: ClientJava.com
Feed URL: http://www.clientjava.com/archives/wireless_mobile.rdf
Feed Description: Client/Desktop Related Java Development
Related to this post, anyone that feels they know the whole SWT Table, Tableviewer, Label/Content provider architecture backwards and forwards please email me or leave me a comment. I've been working with it for a few weeks now. I can't for the life of me see how anyone cooked this design up and said "this thing is great". I really don't think I'm Swing bias here as far as how the table architecture is constructed. I'd like someone experienced on the other side to debate with. Maybe they can make me see the light.
TableViewer tableViewer = new TableViewer(parent);
The scenario: You have already set up the label provider, the content provider and the (model) input. The label provider, which extends ITableLabelProvider returns values for two columns. The data is showing up nicely, but you don't see any APIs in TableViewer to set column headers.