// categories are selectable nodes.
if (isLeafMatch(viewer, element)) {
return true;
}
ITreeContentProvider contentProvider = (ITreeContentProvider) ((TreeViewer) viewer)
.getContentProvider();
IPreferenceNode node = (IPreferenceNode) element;
Object[] children = contentProvider.getChildren(node);
// Will return true if any subnode of the element matches the search
if (filter(viewer, element, children).length > 0) {
return true;
}
return false;