|
Re: Position of a TableColumn [message #439912 is a reply to message #439737] |
Mon, 19 July 2004 14:12 |
Eclipse User |
|
|
|
Originally posted by: cfarra.heiler.com
Ole Laurisch wrote:
> Hi all,
> [short version:]
> is it possible to get the position of a TableColumn in a TableViewer?
> [longer version:]
> I have a TableViewer with a Table and some TableColumns. With the more or
> less known bug fix I added the possibility to drag and drop TableColumns to
> my TableViewer. Therefor I am able to change the position of the columns.
> Now I want to store the user configuration of the TableViewer (size, width
> of the columns and position of the columns) and therefor have to know the
> position of a TableColumn. First I had a look at the Table object, but the
> position of the columns didn't change in it when dragging a column.
> Do you know any other possibility to get the position of a TableColumn. Is
> there maybe is chance to ask the TableViewer for it?
> Any hints would be greatly appreciated!
> Thanks id advance,
> Ole Laurisch
Hmm perhaps you can create a map which know the current Position of the
Columns! When you drag the first column to the second they both have
changed their position! So you can add to your map under the key for
example "column1" = Column2 and "column2" = Column1
Just an idea
|
|
|
|
Powered by
FUDForum. Page generated in 0.08115 seconds