当使用Tree/Table来显示大数据集的时候,如果使用VIRTUAL Table或者VIRTUAL Tree,可以明显的降低计算时间,提高显示速度。 Virtual Table/Tree并不是SWT里面的新特性,但是却没有详细的文档可以参考。 Eclipse.org上最新发表了一篇文章来介绍这个特性:
Virtual Tables and Trees allow developers to quickly create Tables and Trees with large amounts of data and populate them efficiently. This article is an overview of how to use virtual Tables and Trees within SWT applications.
http://www.eclipse.org/articles/Article-SWT-Virtual/Virtual-in-SWT.html