[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: TreeViewer with lazy loading

Thomas Larsson wrote:

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?

setSubTreeChecked() implicitly creates the entire subtree. Instead you could get the sub-nodes which already exist on only check those. You'd also have to make sure that new nodes are created with the "checked" state of their parent. I don't know if there's an elegant solution to this problem. Maybe subclassing CheckboxTreeViewer would be an option.


--
Stefan Zeiger - Developer of Novocode Application Framework
Build SWT-based MVC GUIs via XML: http://www.novocode.com/naf/