How best to use ViewerFilter on a TreeViewer?
问题 I am applying a ViewerFilter to a tree of a few branches, but mostly leaves. The filter really applies to the leaves, using properties within the leaf. All branches are left untouched so that their leaves can appear. However I would like to filter out branches that contain no selected leaves, and I can see no mechanism within ViewerFilter that allows this. Is this possible at all? For example, given the notional tree below (where b is a branch, a L is a leaf) b0 b1 L2 L4 L8 b2 L1 L3 L5 I