Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to re-arrange Table Columns programatically
How to re-arrange Table Columns programatically [message #522394] Mon, 22 March 2010 10:30 Go to next message
Eclipse User
Originally posted by: msoori.lggi.com

How can I re-arrange the columns in a table programatically? You can
drag the table columns to re-order how the columns are arranged, but I
also need to re-arrange the columns based on the column order user
selects from a dialog. I dont see any methods in the TableColumn or the
Table class to do this, but since you can do it by dragging and
dropping the table columns, it should be possible. Any ideas on how to
do this?

TIA
Mahesh
Re: How to re-arrange Table Columns programatically [message #522643 is a reply to message #522394] Tue, 23 March 2010 09:33 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2148
Registered: July 2009
Senior Member
Use Table.setColumnOrder(int[]) (@since 3.1).

Grant


"Mahesh Soori" <msoori@lggi.com> wrote in message
news:ho7uu6$cca$1@build.eclipse.org...
> How can I re-arrange the columns in a table programatically? You can
> drag the table columns to re-order how the columns are arranged, but I
> also need to re-arrange the columns based on the column order user
> selects from a dialog. I dont see any methods in the TableColumn or the
> Table class to do this, but since you can do it by dragging and
> dropping the table columns, it should be possible. Any ideas on how to
> do this?
>
> TIA
> Mahesh
Re: How to re-arrange Table Columns programatically [message #522670 is a reply to message #522394] Tue, 23 March 2010 06:02 Go to previous message
Eclipse User
Originally posted by: msoori.lggi.com

OK, I figured this out. Table.setColumnOrder() is the way to do this.

Mahesh Soori wrote:
> How can I re-arrange the columns in a table programatically? You can
> drag the table columns to re-order how the columns are arranged, but I
> also need to re-arrange the columns based on the column order user
> selects from a dialog. I dont see any methods in the TableColumn or the
> Table class to do this, but since you can do it by dragging and
> dropping the table columns, it should be possible. Any ideas on how to
> do this?
>
> TIA
> Mahesh
Previous Topic:ExceptionInitializerError when deploying eclipse product
Next Topic:how to restart an RCP application?
Goto Forum:
  


Current Time: Fri Aug 29 06:16:35 EDT 2014

Powered by FUDForum. Page generated in 0.02448 seconds