mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
action to change assignable var type (IDEA-125234)
This commit is contained in:
+5
@@ -2673,6 +2673,11 @@ public class HighlightUtil extends HighlightUtilBase {
|
||||
if (method != null) {
|
||||
QuickFixAction.registerQuickFixAction(highlightInfo, QUICK_FIX_FACTORY.createMethodReturnFix(method, parameter.getType(), true));
|
||||
}
|
||||
} else if (expr instanceof PsiReferenceExpression) {
|
||||
final PsiElement resolve = ((PsiReferenceExpression)expr).resolve();
|
||||
if (resolve instanceof PsiVariable) {
|
||||
registerChangeVariableTypeFixes((PsiVariable)resolve, parameter.getType(), null, highlightInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user