mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-17 21:43:33 +07:00
enable implement interface at the end of identifier (IDEA-67421)
This commit is contained in:
+7
-1
@@ -90,7 +90,13 @@ public class CreateSubclassAction extends PsiElementBaseIntentionAction {
|
||||
if (element.getTextOffset() >= lBrace.getTextOffset()) return false;
|
||||
|
||||
TextRange declarationRange = HighlightNamesUtil.getClassDeclarationTextRange(psiClass);
|
||||
if (!declarationRange.contains(element.getTextRange())) return false;
|
||||
final TextRange elementTextRange = element.getTextRange();
|
||||
if (!declarationRange.contains(elementTextRange)) {
|
||||
if (!(element instanceof PsiWhiteSpace) || (declarationRange.getStartOffset() != elementTextRange.getEndOffset() &&
|
||||
declarationRange.getEndOffset() != elementTextRange.getStartOffset())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
myText = getTitle(psiClass);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user