Package org.eclipse.ui.dialogs
Class StyledStringHighlighter
- java.lang.Object
-
- org.eclipse.ui.dialogs.StyledStringHighlighter
-
- All Implemented Interfaces:
IStyledStringHighlighter
public class StyledStringHighlighter extends Object implements IStyledStringHighlighter
The default implementation ofIStyledStringHighlighter
. Highlights all matching groups of filter regular expression using*
and?
as placeholder in bold.- Since:
- 3.115
-
-
Constructor Summary
Constructors Constructor Description StyledStringHighlighter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StyledString
highlight(String text, String pattern, StyledString.Styler styler)
Used to highlight matches
-
-
-
Method Detail
-
highlight
public StyledString highlight(String text, String pattern, StyledString.Styler styler)
Description copied from interface:IStyledStringHighlighter
Used to highlight matches- Specified by:
highlight
in 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
StyledString
representation oftext
-
-