How to enable dragging table columns [message #503609] |
Mon, 14 December 2009 23:35 |
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 #503827 is a reply to message #503702] |
Tue, 15 December 2009 17:36 |
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.02871 seconds