public final class EmptyIntentionAction extends AbstractEmptyIntentionAction implements LowPriorityAction, Iconable
PriorityAction.Priority
Iconable.IconFlags, Iconable.LastComputedIcon
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
EMPTY_ARRAY
Constructor and Description |
---|
EmptyIntentionAction(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getFamilyName()
Returns the name of the family of intentions.
|
javax.swing.Icon |
getIcon(int flags) |
java.lang.String |
getText()
Returns text to be shown in the list of available actions, if this action
is available.
|
int |
hashCode() |
boolean |
isAvailable(Project project,
Editor editor,
PsiFile file)
Checks whether this intention is available at a caret offset in the file.
|
invoke, startInWriteAction
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getPriority
getElementToMakeWritable
public java.lang.String getText()
IntentionAction
getText
in interface IntentionAction
IntentionAction.isAvailable(Project, Editor, PsiFile)
public java.lang.String getFamilyName()
IntentionAction
getFamilyName
in interface IntentionAction
IntentionManager.registerIntentionAndMetaData(IntentionAction, String...)
public boolean isAvailable(Project project, Editor editor, PsiFile file)
IntentionAction
isAvailable
in interface IntentionAction
project
- the project in which the availability is checked.editor
- the editor in which the intention will be invoked.file
- the file open in the editor.true
if the intention is available, false
otherwise.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object