mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
reverted
This commit is contained in:
@@ -326,13 +326,13 @@ public class RenameDialog extends RefactoringDialog {
|
||||
@Override
|
||||
protected void canRun() throws ConfigurationException {
|
||||
if (Comparing.strEqual(getNewName(), myOldName)) throw new ConfigurationException(null);
|
||||
final Function<String, String> inputValidator = RenameInputValidatorRegistry.getInputErrorValidator(myPsiElement);
|
||||
if (inputValidator != null) {
|
||||
throw new ConfigurationException(inputValidator.fun(getNewName()));
|
||||
}
|
||||
if (!areButtonsValid()) {
|
||||
throw new ConfigurationException("\'" + getNewName() + "\' is not a valid identifier");
|
||||
}
|
||||
final Function<String, String> inputValidator = RenameInputValidatorRegistry.getInputErrorValidator(myPsiElement);
|
||||
if (inputValidator != null) {
|
||||
setErrorText(inputValidator.fun(getNewName()));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user