I am using a Nebula GridTreeViewer
for which I need to add filters like eclipse filters.
When we go to Window->Preferences, we get a filter on top of the left side tree which says 'type filter text'.
I tried the TreeViewer
with the FilteredTree
-
final FilteredTree filteredTree = new FilteredTree(parent, SWT.BORDER
| SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION,
new MyPatternFilter(), true);
TreeViewer treeViewer = filteredTree.getViewer();
The above code works fine for a TreeViewer
.
Is there a similar way to attach such kind of a filter to a Nebula GridTreeViewer
?
If yes, please tell me. Would be very helpful. Thanks.