Hiding empty parents - JFace's TreeViewer
问题 I'm creating a tree viewer in JFace and I want to achieve something. I use filter in it. The filter works well, but not perfectly. When I use filter.expandAll() method, the filter filters all of the tree's items, but there's something really annoying. Although it filters all of the tree's items, it doesn't hide item parents, that become now empty. Example: As you can see, there's only one item that matches the filter: "General/Map/New". But all of the parents are now shown although that they