Package org.eclipse.ui.dialogs
Class StyledStringHighlighter
java.lang.Object
org.eclipse.ui.dialogs.StyledStringHighlighter
- All Implemented Interfaces:
IStyledStringHighlighter
The default implementation of
IStyledStringHighlighter.
Highlights all matching groups of filter regular expression using
* and ? as placeholder in bold.- Since:
- 3.115
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhighlight(String text, String pattern, StyledString.Styler styler) Used to highlight matches
-
Constructor Details
-
StyledStringHighlighter
public StyledStringHighlighter()
-
-
Method Details
-
highlight
Description copied from interface:IStyledStringHighlighterUsed to highlight matches- Specified by:
highlightin interfaceIStyledStringHighlighter- Parameters:
text- The text in which matches should be highlightedpattern- The pattern that defines what to highlightstyler- The styler used to highlight the matches- Returns:
- A
StyledStringrepresentation oftext
-