tests fixed

This commit is contained in:
Dmitry Avdeev
2010-12-23 13:32:35 +03:00
parent 91854d7050
commit 7313da74e5
@@ -90,7 +90,9 @@ public class PsiElementRenameHandler implements RenameHandler {
if (!element.isWritable()) {
String message = RefactoringBundle.getCannotRefactorMessage("This element cannot be renamed.");
showErrorMessage(project, editor, message);
if (!ApplicationManager.getApplication().isUnitTestMode()) {
showErrorMessage(project, editor, message);
}
return false;
}