Find in Path: better wording for error message in case of empty search text

This commit is contained in:
Vassiliy.Kudryashov
2017-04-20 19:29:03 +03:00
parent 237c90e318
commit b4bf5c63dd
3 changed files with 3 additions and 2 deletions
@@ -820,7 +820,7 @@ public class FindDialog extends DialogWrapper implements FindUI {
}
if (!myHelper.canSearchThisString()) {
return new ValidationInfo("String to find is empty", myInputComboBox);
return new ValidationInfo(FindBundle.message("find.empty.search.text.error"), myInputComboBox);
}
if (myCbRegularExpressions != null && myCbRegularExpressions.isSelected() && myCbRegularExpressions.isEnabled()) {
@@ -896,7 +896,7 @@ public class FindPopupPanel extends JBPanel implements FindUI, DataProvider {
}
if (!myHelper.canSearchThisString()) {
return new ValidationInfo("String to find is empty", mySearchComponent);
return new ValidationInfo(FindBundle.message("find.empty.search.text.error"), mySearchComponent);
}
if (myCbRegularExpressions != null && myCbRegularExpressions.isSelected() && myCbRegularExpressions.isEnabled()) {
@@ -84,6 +84,7 @@ find.context.presentation.scope.label=\u0020({0})
find.directory.not.found.error=Directory \"{0}\" is not found
find.invalid.regular.expression.error=Bad pattern \"{0}\": {1}
find.empty.match.regular.expression.error=Regular expression matches empty string
find.empty.search.text.error=No search text entered
find.filter.invalid.file.mask.error=Bad file mask \"{0}\"
find.filter.empty.file.mask.error=Empty file mask
find.options.case.sensitive=&Case sensitive