public class ChangeSuperClassFix extends java.lang.Object implements LocalQuickFix, HighPriorityAction
PriorityAction.Priority
EMPTY_ARRAY
Constructor and Description |
---|
ChangeSuperClassFix(PsiClass targetClass,
PsiClass newSuperClass,
PsiClass oldSuperClass,
int percent,
boolean isImplements) |
Modifier and Type | Method and Description |
---|---|
void |
applyFix(Project project,
ProblemDescriptor problemDescriptor)
Called to apply the fix.
|
java.lang.String |
getFamilyName() |
int |
getInheritorCount() |
java.lang.String |
getName() |
PsiClass |
getNewSuperClass() |
boolean |
startInWriteAction()
Indicate whether this action should be invoked inside write action.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementToMakeWritable
getPriority
public PsiClass getNewSuperClass()
public int getInheritorCount()
public java.lang.String getName()
getName
in interface QuickFix<ProblemDescriptor>
public java.lang.String getFamilyName()
getFamilyName
in interface QuickFix<ProblemDescriptor>
QuickFix.getName()
.public 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 void applyFix(Project project, ProblemDescriptor problemDescriptor)
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
problemDescriptor
- problem reported by the tool which provided this quick fix action