[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Some confusion with IStructuredContentProvider and TableViewer

Hi,

This is not possible because this would change the behaviour of from TableViewer/TreeViewer which holds a LabelProvider by default.

Tom

Martin Thompson schrieb:
duh... found the problem... hadn't added the setup call to the TableLabelProvider... the label provider class was there... just wasn't set up for the viewer... strange result nontheless... perhaps some sort of check could be built-in to make other sleepy people aware that they've given the interface no way to determine what is in each cell of the row based on the object specified for the row

"Martin Thompson" <thompsma@xxxxxxx> wrote in message news:f9fhbi$gqm$1@xxxxxxxxxxxxxxxxxxxx
Hello... I used the Basketball player stats per team example from java2s.com,
http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/DemonstratesTableViewers.htm, and I modified it and included what I thought was proper code to fill a table with my objects using a similar Content Provider for the table. My team object is DataSet and my player object is Position. However, when I run the program I get what appears to be object memory references in the first column of the table and nothing else in the table.


1) Is there a good explanation somewhere that explains how the TableViewer setInput method gets the information into the table columns for each obkect provided?

2) If I provide my code will someone have a quick look and see where I might be going wrong?

Martin






--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl                                          JFace-Committer
--------------------------------------------------------------------