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

Tom suggested the new and improved way to do things. I just wanted to add 
that we do the same thing you do--let the user reorder the columns and then 
restore that column order next time the view is opened. If you always add 
the columns to the table in the default order, and then call 
tableViewer.getTable().setColumnOrder(newColumnOrder), there shouldn't be 
any problem with your label provider. Even if the column in default position 
3 has been moved to position 5, 3 will be passed to the label provider. So 
if you want to stick with one label provider for the table, you can.

"Bianca" <bianca.thelen@xxxxxxxx> wrote in message 
news:7dac9465660dfccaa2ef70b191a1c0dc$1@xxxxxxxxxxxxxxxxxx
> Thanks Tom. I guess I'll have to refine my searching skills because I 
> never came across the ColumnLabelProvider. ;-)
>
> Kind regards,
> Bianca
>