protected class FilteringOutlinePopup.ElementMatcher
extends java.lang.Object
implements java.util.function.Predicate<java.lang.Object>
text
(by default, the label string)
obtained for the given outline element to the underlying string matcher.Constructor and Description |
---|
ElementMatcher(java.util.function.Predicate<java.lang.String> stringMatcher)
Creates a new element matcher based on the given string matcher.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getText(java.lang.Object element)
Returns the text for the given outline element.
|
boolean |
test(java.lang.Object element) |
public ElementMatcher(java.util.function.Predicate<java.lang.String> stringMatcher)
stringMatcher
- not null
public final boolean test(java.lang.Object element)
test
in interface java.util.function.Predicate<java.lang.Object>
protected java.lang.String getText(java.lang.Object element)
Default implementation returns the label string obtained from the tree viewer's label provider.
element
- the outline element (never null
)null
if no text can be obtainedCopyright (c) 2014, 2018 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0