[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] SWT.setData event handlers not called if the table has zero items ?

I was debugging this problem:

a virtual table (jface TableViewer) with ILazyContentProvider (headaches).
A context menu to set filter (show-> a[] b[x] c[x]), if I filter all
the items and the table is empty and then I remove the filters the table
is not updated.

So I put a breakpoint in the handler in AbstractTableViewer VirtualManager.addTableListener() and it is not call when the table
is empty :-/.
If in the content provider I lie and say that there is 1 item instead of zero, it works.


Eclipse version 3.4, linux amd64.

I didn't sleep deubgging this problem so sorry if I'm not being clear.

thank you.