mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-53575 - CCE: InlineMethodHandler.inlineElement
This commit is contained in:
@@ -127,7 +127,14 @@ class InlineMethodHandler extends JavaInlineActionHandler {
|
||||
final VirtualFile vFile = method.getContainingFile().getVirtualFile();
|
||||
ReadonlyStatusHandler.getInstance(project).ensureFilesWritable(vFile);
|
||||
}
|
||||
PsiJavaCodeReferenceElement refElement = reference != null ? (PsiJavaCodeReferenceElement)reference.getElement() : null;
|
||||
|
||||
PsiJavaCodeReferenceElement refElement = null;
|
||||
if (reference != null) {
|
||||
final PsiElement referenceElement = reference.getElement();
|
||||
if (referenceElement instanceof PsiJavaCodeReferenceElement) {
|
||||
refElement = (PsiJavaCodeReferenceElement)referenceElement;
|
||||
}
|
||||
}
|
||||
InlineMethodDialog dialog = new InlineMethodDialog(project, method, refElement, editor, allowInlineThisOnly);
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user