public class RepositoryAddLibraryAction extends IntentionAndQuickFixAction
EMPTY_ARRAYEMPTY_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, isAvailableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetElementToMakeWritablepublic RepositoryAddLibraryAction(Module module, RepositoryLibraryDescription libraryDescription)
public java.lang.String getName()
getName in interface QuickFix<ProblemDescriptor>getName in class IntentionAndQuickFixActionpublic java.lang.String getFamilyName()
IntentionActiongetFamilyName in interface IntentionActiongetFamilyName in interface QuickFix<ProblemDescriptor>getFamilyName in class IntentionAndQuickFixActionQuickFix.getName().IntentionManager.registerIntentionAndMetaData(IntentionAction, String...)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 IntentionActionstartInWriteAction in interface WriteActionAwarestartInWriteAction in class IntentionAndQuickFixActiontrue if the action requires a write action (default), false otherwise.public void applyFix(Project project, PsiFile file, Editor editor)
applyFix in class IntentionAndQuickFixActionpublic static Promise<java.lang.Void> addLibraryToModule(RepositoryLibraryDescription libraryDescription, Module module)