change the failing test so that it works closer to the real life and doesn't fail

This commit is contained in:
peter
2010-12-22 10:13:20 +03:00
parent 472af7f185
commit b8d54d2a43
@@ -84,7 +84,7 @@ public class PsiElementRenameHandler implements RenameHandler {
rename(element, project, nameSuggestionContext, editor);
}
static boolean canRename(Project project, Editor editor, PsiElement element) {
public static boolean canRename(Project project, Editor editor, PsiElement element) {
if (element == null) return false;
if (!(element instanceof PsiFile) && CollectHighlightsUtil.isOutsideSourceRootJavaFile(element.getContainingFile())) return false;