The workbench plugin has got an option in it's context menu labeled "Open all files in sub-directory" and "Close all files in sub-directory". So it does not work automatically on reducing/collapsing a sub-directory in the tree but it's still faster than closing each single file by hand.