Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TableColumn.pack() causes deadlock
TableColumn.pack() causes deadlock [message #465703] Tue, 20 December 2005 09:14 Go to next message
Eclipse UserFriend
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 #465716 is a reply to message #465703] Tue, 20 December 2005 12:37 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
What platform are you running on? What version of SWT are you using? Do
you have example code with a repeatable case? Do you have a thread dump of
the deadlock?

"Erel" <e@s.com> wrote in message
news:0407df561c2645f3b8acf958141bae8e$1@www.eclipse.org...
> 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 Go to previous message
Eclipse UserFriend
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
Previous Topic:TableWrapLayout bug
Next Topic:get enabled and disabled color for a widget(text,combo...)
Goto Forum:
  


Current Time: Wed Jun 19 17:51:44 GMT 2019

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

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

Back to the top