treeview - TreeViewer expand all blocks UI -


we use rcp 3.4. treeviewer there comes handy function called "expandall()" expands whole tree. when have many items in tree, ui blocks while. tried put workspace job, error invalid thread access. tried run method displac.getdefaukt().asyncexec(...) ui blocks well.

is there way put expand-all method job possible put in background , cancel, normal workspace job?

for ordinary tree can display busy indicator while tree expands, perhaps using busyindicator.

you @ using deferredtreecontentmanager can tree nodes in background. requires tree node implement or adapt ideferredworkbenchadapter has fetchdeferredchildren method used background work.


Comments