mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Find in Path: better wording for error message in case of empty search text
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user