Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to enable dragging table columns
How to enable dragging table columns [message #503609] Mon, 14 December 2009 23:35 Go to next message
Eclipse User
Originally posted by: msoori.lggi.com

I need to enable dragging a table column so that the column order can be
changed by dragging a given column to a different location, as can be
done in the Eclipse Problems view. If you look at the Problem View you
an see 4 columns as below.

|Path|Description|Location|Resource|

By dragging and dropping the user changes this to

|Path|Location|Description|Resource|


I couldnt figure out what flag needs to be turned on to do this. Any ideas?

Thanks
Mahesh
Re: How to enable dragging table columns [message #503702 is a reply to message #503609] Tue, 15 December 2009 12:00 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel Krügler
Messages: 853
Registered: July 2009
Senior Member
On 15.12.2009 00:35, Mahesh Soori wrote:
> I need to enable dragging a table column so that the column order can be
> changed by dragging a given column to a different location, as can be
> done in the Eclipse Problems view. If you look at the Problem View you
> an see 4 columns as below.
>
> |Path|Description|Location|Resource|
>
> By dragging and dropping the user changes this to
>
> |Path|Location|Description|Resource|
>
>
> I couldnt figure out what flag needs to be turned on to do this. Any ideas?

You need to call tc.setMoveable(true) where tc is a TableColumn of
the Table.

HTH & Greetings from Bremen,

Daniel Krügler
Re: How to enable dragging table columns [message #503827 is a reply to message #503702] Tue, 15 December 2009 17:36 Go to previous message
Eclipse User
Originally posted by: msoori.lggi.com

Thanks for the reply. I'll give that a try. Shouldn't this be a
method/property of the table? Its counter intutive that you have to set
this every column in the table, when it should be something that applies
to the table.

Thanks again,
Mahesh

Daniel Krügler wrote:
> On 15.12.2009 00:35, Mahesh Soori wrote:
>> I need to enable dragging a table column so that the column order can be
>> changed by dragging a given column to a different location, as can be
>> done in the Eclipse Problems view. If you look at the Problem View you
>> an see 4 columns as below.
>>
>> |Path|Description|Location|Resource|
>>
>> By dragging and dropping the user changes this to
>>
>> |Path|Location|Description|Resource|
>>
>>
>> I couldnt figure out what flag needs to be turned on to do this. Any
>> ideas?
>
> You need to call tc.setMoveable(true) where tc is a TableColumn of
> the Table.
>
> HTH & Greetings from Bremen,
>
> Daniel Krügler
>
Previous Topic:DnD with a modifier key
Next Topic:FC12 / can't click wizard buttons
Goto Forum:
  


Current Time: Wed Sep 17 05:38:46 GMT 2014

Powered by FUDForum. Page generated in 0.10218 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software