SWT replaceAllSorted causes massive table repaints

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

SWT replaceAllSorted causes massive table repaints

by philk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If I add some like 800 items into an EL using replaceAllSorted causes the attached EventTableViewer to update the table very slowly. Should I disable the table repaint or is that something GL EventTableViewer is supposed to do itself? I thought I saw some code related to that. The behavior is the same with SWT.VIRTUAL or not.

Thanks,
Phil

Parent Message unknown Re: SWT replaceAllSorted causes massive table repaints

by Holger Brands :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When EventTableViewer receives ListEvents it calls
table.setRedraw(false),
processes the list changes
and finally calls
table.setRedraw(true).

Hope this helps,
Holger

>
> If I add some like 800 items into an EL using replaceAllSorted causes the
> attached EventTableViewer to update the table very slowly. Should I disable
> the table repaint or is that something GL EventTableViewer is supposed to do
> itself? I thought I saw some code related to that. The behavior is the same
> with SWT.VIRTUAL or not.
>
> Thanks,
> Phil
> --
> View this message in context: http://www.nabble.com/SWT-replaceAllSorted-causes-massive-table-repaints-tp24209254p24209254.html
> Sent from the GlazedLists - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>


______________________________________________________
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...