[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: Expanding Column Widths to fit table
|
Guillaume Cauchon schrieb:
> I did something similar with a ControlListenet, but on a single column
> and it is working pretty well...
>
> I guess this is the best way to handle it because, if I'm not wring, the
> table size changes dynamically between the time it gets created
> (createPartControl) and the time that it gets displayed in the Eclipse
> IDe (plug-in or RCP)...
>
> your_table.addControlListener(new ControlAdapter(){
> public void controlResized(ControlEvent event){
> if(your_table.getClientArea().width > 0)
> // Do whatever you want with the extra width
> // your_table.getClientArea().width
> }
> }
> });
>
You might be interested in:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=93611
part of 3.3M3 if you need a working version within 3.2 you could use
http://publicsvn.bestsolution.at/repos/java/at.bestsolution.jface/trunk/
Tom