public abstract class OrderEntryFix extends java.lang.Object implements IntentionAction, LocalQuickFix
EMPTY_ARRAYEMPTY_ARRAY| Modifier | Constructor and Description |
|---|---|
protected |
OrderEntryFix(PsiReference reference) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addJarsToRoots(java.util.List<java.lang.String> jarPaths,
java.lang.String libraryName,
Module module,
PsiElement location) |
static void |
addJarToRoots(java.lang.String jarPath,
Module module,
PsiElement location) |
void |
applyFix(Project project,
ProblemDescriptor descriptor)
Called to apply the fix.
|
java.lang.String |
getName() |
static void |
importClass(Module currentModule,
Editor editor,
PsiReference reference,
java.lang.String className) |
static java.util.List<java.lang.String> |
refreshAndConvertToUrls(java.util.List<java.lang.String> jarPaths) |
static java.util.List<LocalQuickFix> |
registerFixes(QuickFixActionRegistrar registrar,
PsiReference reference) |
protected PsiReference |
restoreReference() |
boolean |
startInWriteAction()
Indicate whether this action should be invoked inside write action.
|
static DependencyScope |
suggestScopeByLocation(Module module,
PsiElement location) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFamilyName, getText, invoke, isAvailablegetFamilyNamegetElementToMakeWritableprotected OrderEntryFix(PsiReference reference)
protected PsiReference restoreReference()
public boolean startInWriteAction()
IntentionActionfalse if, e.g., a 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 IntentionActionstartInWriteAction in interface WriteActionAwaretrue if the intention requires a write action, false otherwise.public java.lang.String getName()
getName in interface QuickFix<ProblemDescriptor>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 actionpublic static java.util.List<LocalQuickFix> registerFixes(QuickFixActionRegistrar registrar, PsiReference reference)
public static void importClass(Module currentModule, Editor editor, PsiReference reference, java.lang.String className)
public static void addJarToRoots(java.lang.String jarPath,
Module module,
PsiElement location)
public static void addJarsToRoots(java.util.List<java.lang.String> jarPaths,
java.lang.String libraryName,
Module module,
PsiElement location)
public static java.util.List<java.lang.String> refreshAndConvertToUrls(java.util.List<java.lang.String> jarPaths)
public static DependencyScope suggestScopeByLocation(Module module, PsiElement location)