mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
trim input name before validate; trimmed on create already (IDEA-155062)
This commit is contained in:
@@ -59,7 +59,7 @@ public class CreateFileFromTemplateDialog extends DialogWrapper {
|
||||
@Override
|
||||
protected ValidationInfo doValidate() {
|
||||
if (myInputValidator != null) {
|
||||
final String text = myNameField.getText();
|
||||
final String text = myNameField.getText().trim();
|
||||
final boolean canClose = myInputValidator.canClose(text);
|
||||
if (!canClose) {
|
||||
String errorText = LangBundle.message("incorrect.name");
|
||||
|
||||
Reference in New Issue
Block a user