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, wait
getFamilyName, invoke, isAvailable
getElementToMakeWritable
public java.lang.String getText()
IntentionAction
getText
in interface IntentionAction
IntentionAction.isAvailable(Project, Editor, PsiFile)
protected void setText(java.lang.String text)
public boolean startInWriteAction()
IntentionAction
false
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 IntentionAction
startInWriteAction
in interface WriteActionAware
true
if the intention requires a write action, false
otherwise.public java.lang.String toString()
toString
in class java.lang.Object
public static boolean canModify(PsiElement element)