public abstract class LocalQuickFixBase extends java.lang.Object implements LocalQuickFix
EMPTY_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
LocalQuickFixBase(java.lang.String name) |
protected |
LocalQuickFixBase(java.lang.String name,
java.lang.String familyName) |
Modifier and Type | Method and Description |
---|---|
abstract void |
applyFix(Project project,
ProblemDescriptor descriptor)
Called to apply the fix.
|
java.lang.String |
getFamilyName() |
java.lang.String |
getName() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementToMakeWritable
startInWriteAction
protected LocalQuickFixBase(java.lang.String name)
name
- the name of the quick fixprotected LocalQuickFixBase(java.lang.String name, java.lang.String familyName)
name
- the name of the quick fixfamilyName
- text to appear in "Apply Fix" popup when multiple Quick Fixes exist (in the results of batch code inspection). For example,
if the name of the quickfix is "Create template <filename>", the return value of getFamilyName() should be "Create template".
If the name of the quickfix does not depend on a specific element, simply return getName().public java.lang.String getName()
getName
in interface QuickFix<ProblemDescriptor>
public java.lang.String getFamilyName()
getFamilyName
in interface QuickFix<ProblemDescriptor>
QuickFix.getName()
.public abstract 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 action