public final class FindDfaProblemCauseFix extends java.lang.Object implements LocalQuickFix, LowPriorityAction
PriorityAction.PriorityEMPTY_ARRAY| Constructor and Description |
|---|
FindDfaProblemCauseFix(boolean unknownMembersAsNullable,
boolean ignoreAssertStatements,
PsiExpression anchor,
TrackingRunner.DfaProblemType problemType) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyFix(Project project,
ProblemDescriptor descriptor)
Called to apply the fix.
|
java.lang.String |
getFamilyName() |
boolean |
startInWriteAction()
Indicate whether this action should be invoked inside write action.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetElementToMakeWritablegetPrioritypublic FindDfaProblemCauseFix(boolean unknownMembersAsNullable,
boolean ignoreAssertStatements,
PsiExpression anchor,
TrackingRunner.DfaProblemType problemType)
public boolean startInWriteAction()
WriteActionAwarefalse 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 WriteActionAwaretrue if the action requires a write action (default), false otherwise.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 - Projectdescriptor - problem reported by the tool which provided this quick fix action