IDEA-83774 Completion for anonymous class is incorrectly aligned when class is not accessible in the scope

This commit is contained in:
peter
2012-03-30 20:27:28 +02:00
parent db0e84707b
commit e4a1bb0b1c
4 changed files with 31 additions and 5 deletions
@@ -747,6 +747,7 @@ public class JavaCompletionUtil {
final String qName = psiClass.getQualifiedName();
if (qName != null) {
document.replaceString(newElement.getTextRange().getStartOffset(), newEndOffset, qName);
newEndOffset = newElement.getTextRange().getStartOffset() + qName.length();
}
}
}