[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: TableLabelProvider - moveable columns

Well that's exactly why we invented the new ColumnLabelProvider-API in 3.3. This way you assign the LabelProvider to the column and don't have those indexing problems because you have a FirstnameLabelProvider, LastnameLabelProvider, ... .

Tom

Bianca schrieb:
Hi all,

I have a table with moveable columns. When the user closes the application the order of the columns is saved and restored the next time the user opens the appliation.

Problem: in my LabelProvider I only get the index of the table column that is being filled. Which is a problem when the user moves the columns. For example: in the default table layout images are always shown in the first column of the table. The user now moves this column to the end of the table, closes the application and restarts it the next day. I haven't found a way to determine where the column showing the images is now.

Does anybody know a solution for this?

Regards
Bianca



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