public abstract class BaseIntentionAction extends java.lang.Object implements IntentionAction
EMPTY_ARRAY| Constructor and Description |
|---|
BaseIntentionAction() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canModify(PsiElement element) |
java.lang.String |
getText()
Returns text to be shown in the list of available actions, if this action
is available.
|
protected void |
setText(java.lang.String text) |
boolean |
startInWriteAction()
Indicate whether this action should be invoked inside write action.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFamilyName, invoke, isAvailablegetElementToMakeWritablepublic java.lang.String getText()
IntentionActiongetText in interface IntentionActionIntentionAction.isAvailable(Project, Editor, PsiFile)protected void setText(java.lang.String text)
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 toString()
toString in class java.lang.Objectpublic static boolean canModify(PsiElement element)