Class FilteringOutlinePopup.ElementMatcher
java.lang.Object
org.eclipse.handly.ui.quickoutline.FilteringOutlinePopup.ElementMatcher
- Enclosing class:
FilteringOutlinePopup
A pattern-based element matcher for the outline popup. Passes the
text (by default, the label string)
obtained for the given outline element to the underlying string matcher.-
Constructor Summary
ConstructorsConstructorDescriptionElementMatcher(Predicate<String> stringMatcher) Creates a new element matcher based on the given string matcher. -
Method Summary
-
Constructor Details
-
ElementMatcher
Creates a new element matcher based on the given string matcher.- Parameters:
stringMatcher- notnull
-
-
Method Details
-
test
-
getText
Returns the text for the given outline element.Default implementation returns the label string obtained from the tree viewer's label provider.
- Parameters:
element- the outline element (nevernull)- Returns:
- the text for the given outline element,
or
nullif no text can be obtained
-