rename: do not show dialogs during update (IDEA-90652)

This commit is contained in:
Anna Kozlova
2012-08-28 18:21:07 +04:00
parent cb9e2f3c3c
commit b6f42f0385
@@ -62,6 +62,6 @@ public class RenameElementAction extends BaseRefactoringAction {
@Override
protected boolean isAvailableOnElementInEditorAndFile(PsiElement element, Editor editor, PsiFile file, DataContext context) {
return getHandler(context) != null;
return RenameHandlerRegistry.getInstance().hasAvailableHandler(context);
}
}