[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: TreeViewer with lazy loading
|
- From: thomas.larsson@xxxxxxx (Thomas Larsson)
- Date: Thu, 9 Jun 2005 14:44:47 +0000 (UTC)
- Newsgroups: eclipse.platform.swt
- Organization: not organized
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Thanks Stefan,
I'm a little confused so let me describe the problem in more detail. In my
case, I have a checkboxtreeviewer which displays the file tree. I have a
CheckStateListener that calls the CheckBoxViewer.setSubTreeChecked() if
the user checks a file.
If the file tree is large and a top node is checked, there is a
considerable lag with an unresponsive gui. How does this correspond to
what you said?
If you need to know,
My ContentProvider has the getChildren method:
public Object[] getChildren(Object element) {
Object[] kids = null;
if( useFilter)
kids = ((File) element).listFiles(fileFilter);
else
kids = ((File) element).listFiles();
return kids == null ? new Object[0] : kids;
}
Best Regards
-Thomas