Package org.eclipse.ui.internal
Class SearchDecoration
java.lang.Object
org.eclipse.ui.internal.SearchDecoration
This class contains methods to validate and decorate search fields.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
validateRegex
(String regex, ControlDecoration targetDecoration) Validate the given regular expression and change the control decoration accordingly.
-
Method Details
-
validateRegex
Validate the given regular expression and change the control decoration accordingly. If the expression is invalid then the decoration will show an error icon and a message and if the expression is valid then the decoration will be hidden.- Parameters:
regex
- The regular expression to be validated.targetDecoration
- The control decoration that will show the result of the validation.
-