public class RepositoryAddLibraryAction extends IntentionAndQuickFixAction
EMPTY_ARRAY
EMPTY_ARRAY
Constructor and Description |
---|
RepositoryAddLibraryAction(Module module,
RepositoryLibraryDescription libraryDescription) |
Modifier and Type | Method and Description |
---|---|
static Promise<java.lang.Void> |
addLibraryToModule(RepositoryLibraryDescription libraryDescription,
Module module) |
void |
applyFix(Project project,
PsiFile file,
Editor editor) |
java.lang.String |
getFamilyName()
Returns the name of the family of intentions.
|
java.lang.String |
getName() |
boolean |
startInWriteAction()
Indicate whether this action should be invoked inside write action.
|
applyFix, getText, invoke, isAvailable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementToMakeWritable
public RepositoryAddLibraryAction(Module module, RepositoryLibraryDescription libraryDescription)
public java.lang.String getName()
getName
in interface QuickFix<ProblemDescriptor>
getName
in class IntentionAndQuickFixAction
public java.lang.String getFamilyName()
IntentionAction
getFamilyName
in interface IntentionAction
getFamilyName
in interface QuickFix<ProblemDescriptor>
getFamilyName
in class IntentionAndQuickFixAction
QuickFix.getName()
.IntentionManager.registerIntentionAndMetaData(IntentionAction, String...)
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 IntentionAction
startInWriteAction
in interface WriteActionAware
startInWriteAction
in class IntentionAndQuickFixAction
true
if the action requires a write action (default), false
otherwise.public void applyFix(Project project, PsiFile file, Editor editor)
applyFix
in class IntentionAndQuickFixAction
public static Promise<java.lang.Void> addLibraryToModule(RepositoryLibraryDescription libraryDescription, Module module)