GC of SWT Virtual TableItems (#160)

View: New views
2 Messages — Rating Filter:   Alert me  

GC of SWT Virtual TableItems (#160)

by fab|an :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

 since I can't comment on https://glazedlists.dev.java.net/issues/show_bug.cgi?id=160, I add my comment here:

I believe this issue can be closed. I played around with virtual Tables and Trees for a while and found via a DisposeListener on the created Items out that SWT disposes them after using setItemCount() to notify the Table that they aren't needed anymore, which is exactly what GL does.

Re: GC of SWT Virtual TableItems (#160)

by fab|an :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, I correct myself. EventTableViewer removes it's rows by calling table.remove(int[] rows).
I checked that using DisposeListeners: the TableItems will be disposed after removing a row.

fab|an wrote:
Hi,

 since I can't comment on https://glazedlists.dev.java.net/issues/show_bug.cgi?id=160, I add my comment here:

I believe this issue can be closed. I played around with virtual Tables and Trees for a while and found via a DisposeListener on the created Items out that SWT disposes them after using setItemCount() to notify the Table that they aren't needed anymore, which is exactly what GL does.