protected class FilteringOutlinePopup.ElementMatcher extends java.lang.Object implements FilteringOutlinePopup.IMatcher<java.lang.Object>
Constructor and Description |
---|
ElementMatcher(FilteringOutlinePopup.IMatcher<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 |
matches(java.lang.Object element)
Determines a true or false for the given object.
|
public ElementMatcher(FilteringOutlinePopup.IMatcher<java.lang.String> stringMatcher)
stringMatcher
- not null
public final boolean matches(java.lang.Object element)
FilteringOutlinePopup.IMatcher
matches
in interface FilteringOutlinePopup.IMatcher<java.lang.Object>
element
- may be null
true
if the specified object matches;
false
otherwiseprotected 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 obtained