mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IOOBE: do not position caret in another editor
This commit is contained in:
@@ -120,7 +120,7 @@ public class AddMethodFix extends LocalQuickFixAndIntentionActionOnPsiElement {
|
||||
}
|
||||
PsiMethod method = (PsiMethod)myClass.add(myMethodPrototype);
|
||||
method = (PsiMethod)method.replace(reformat(project, method));
|
||||
if (editor != null) {
|
||||
if (editor != null && method.getContainingFile() == file) {
|
||||
GenerateMembersUtil.positionCaret(editor, method, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user