IDEA-74922 Groovy: cannot close Warning dialog shown on Introduce Parameter Refactoring

This commit is contained in:
Maxim Medvedev
2011-10-04 22:38:03 +04:00
parent ab9a63a19a
commit d2aa9e1b16
@@ -177,6 +177,7 @@ public class GrIntroduceParameterHandler implements RefactoringActionHandler {
final GrParametersOwner owner = scopes.get(0);
if (owner instanceof GrMethod) {
PsiMethod newMethod = SuperMethodWarningUtil.checkSuperMethod((PsiMethod)owner, RefactoringBundle.message("to.refactor"));
if (newMethod == null) return;
getContext(project, editor, expression, variable, owner, newMethod);
return;
}