public interface LocalQuickFix extends QuickFix<ProblemDescriptor>, FileModifier
ProblemDescriptor
N.B. Please DO NOT store PSI elements inside the LocalQuickFix instance, to avoid holding too much PSI files during inspection.
Instead, use the ProblemDescriptor.getPsiElement()
in QuickFix.applyFix(com.intellij.openapi.project.Project, CommonProblemDescriptor)
to retrieve the PSI context the fix will work on.
See also LocalQuickFixOnPsiElement
which uses SmartPsiElementPointer
instead of storing PSI elements.
Implement Iconable
interface to
change icon in quick fix popup menu.
Implement HighPriorityAction
or
LowPriorityAction
to change ordering.LocalQuickFixBase
,
ProblemDescriptor
,
Iconable
Modifier and Type | Field and Description |
---|---|
static LocalQuickFix[] |
EMPTY_ARRAY |
applyFix, getFamilyName, getName
getElementToMakeWritable
startInWriteAction
static final LocalQuickFix[] EMPTY_ARRAY