public static class ParameterCanBeLocalInspection.ConvertParameterToLocalQuickFix extends BaseConvertToLocalQuickFix<PsiParameter>
LOG
EMPTY_ARRAY
Constructor and Description |
---|
ConvertParameterToLocalQuickFix() |
Modifier and Type | Method and Description |
---|---|
protected PsiElement |
applyChanges(Project project,
java.lang.String localName,
PsiExpression initializer,
PsiParameter parameter,
java.util.Collection<? extends PsiReference> references,
boolean delete,
NotNullFunction<? super PsiDeclarationStatement,? extends PsiElement> action) |
protected PsiParameter |
getVariable(ProblemDescriptor descriptor) |
boolean |
startInWriteAction()
Indicate whether this action should be invoked inside write action.
|
protected java.lang.String |
suggestLocalName(Project project,
PsiParameter parameter,
PsiCodeBlock scope) |
applyFix, beforeDelete, deleteSourceVariable, getFamilyName, moveDeclaration, moveDeclaration, moveDeclaration, positionCaretToDeclaration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementToMakeWritable
protected PsiParameter getVariable(ProblemDescriptor descriptor)
getVariable
in class BaseConvertToLocalQuickFix<PsiParameter>
protected PsiElement applyChanges(Project project, java.lang.String localName, PsiExpression initializer, PsiParameter parameter, java.util.Collection<? extends PsiReference> references, boolean delete, NotNullFunction<? super PsiDeclarationStatement,? extends PsiElement> action)
applyChanges
in class BaseConvertToLocalQuickFix<PsiParameter>
public boolean startInWriteAction()
WriteActionAware
Should return false
if e.g. modal dialog is shown inside the action.
If false
is returned the action itself is responsible for starting write action
when needed, by calling Application.runWriteAction(Runnable)
.
true
if the action requires a write action (default), false
otherwise.protected java.lang.String suggestLocalName(Project project, PsiParameter parameter, PsiCodeBlock scope)
suggestLocalName
in class BaseConvertToLocalQuickFix<PsiParameter>