public static class SameParameterValueInspection.InlineParameterValueFix extends java.lang.Object implements LocalQuickFix
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
void |
applyFix(Project project,
ProblemDescriptor descriptor)
Called to apply the fix.
|
java.lang.String |
getFamilyName() |
java.lang.String |
getName() |
java.lang.String |
getParamName() |
static void |
inlineSameParameterValue(PsiMethod method,
PsiParameter parameter,
PsiExpression defToInline) |
static void |
removeParameter(PsiMethod method,
PsiParameter parameter) |
boolean |
startInWriteAction()
Indicate whether this action should be invoked inside write action.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getElementToMakeWritable
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
getName
in interface QuickFix<ProblemDescriptor>
public java.lang.String getFamilyName()
getFamilyName
in interface QuickFix<ProblemDescriptor>
QuickFix.getName()
.public void applyFix(Project project, ProblemDescriptor descriptor)
QuickFix
Please call com.intellij.profile.codeInspection.ProjectInspectionProfileManager#fireProfileChanged()
if inspection profile is changed as result of fix.
applyFix
in interface QuickFix<ProblemDescriptor>
project
- Project
descriptor
- problem reported by the tool which provided this quick fix actionpublic boolean startInWriteAction()
WriteActionAware
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)
.startInWriteAction
in interface WriteActionAware
true
if the action requires a write action (default), false
otherwise.public static void inlineSameParameterValue(PsiMethod method, PsiParameter parameter, PsiExpression defToInline)
public static void removeParameter(PsiMethod method, PsiParameter parameter)
public java.lang.String getParamName()