TableColumn.pack() causes deadlock [message #465703] |
Tue, 20 December 2005 09:14 |
Eclipse User |
|
|
|
Originally posted by: e.s.com
Hi,
In my code I call TableColumn.pack() to adjust the column size to the
header text. somtimes it causes deadlock. I think it happens when the
table is empty.
Please advise,
Erel
|
|
|
|
Re: TableColumn.pack() causes deadlock [message #465790 is a reply to message #465716] |
Tue, 20 December 2005 14:37 |
Eclipse User |
|
|
|
Originally posted by: e.s.com
Hi,
I'm running on eclipse Version: 3.1.0 Build id: I20050627-1435 on windows
XP.
The code I use is:
final Table table = toolkit.createTable(listContainer, SWT.H_SCROLL |
SWT.V_SCROLL);
table.addControlListener(new ControlAdapter() {
public void controlResized(ControlEvent e) {
for (int i = 0; i < table.getColumnCount(); i++) {
table.getColumn(i).pack();
}
}
});
the deadlock happens when table.getItemCount()
thanks,
Erel
|
|
|
Powered by
FUDForum. Page generated in 0.03473 seconds