public class ExpandStaticImportAction extends BaseElementAtCaretIntentionAction
EMPTY_ARRAY
Constructor and Description |
---|
ExpandStaticImportAction() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFamilyName()
Returns the name of the family of intentions.
|
void |
invoke(Project project,
Editor editor,
PsiElement element)
Invokes intention action for the element under cursor.
|
void |
invoke(Project project,
PsiFile file,
Editor editor,
PsiElement element) |
boolean |
isAvailable(Project project,
Editor editor,
PsiElement element)
Checks whether this intention is available at a caret offset in file.
|
checkFile, invoke, isAvailable
canModify, getText, setText, startInWriteAction, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getElementToMakeWritable
public java.lang.String getFamilyName()
IntentionAction
IntentionManager.registerIntentionAndMetaData(IntentionAction, String...)
public boolean isAvailable(Project project, Editor editor, PsiElement element)
BaseElementAtCaretIntentionAction
true
, a light bulb for this intention is shown.isAvailable
in class BaseElementAtCaretIntentionAction
project
- the project in which the availability is checked.editor
- the editor in which the intention will be invoked.element
- the element under caret.public void invoke(Project project, PsiFile file, Editor editor, PsiElement element)
public void invoke(Project project, Editor editor, PsiElement element) throws IncorrectOperationException
BaseElementAtCaretIntentionAction
invoke
in class BaseElementAtCaretIntentionAction
project
- the project in which the file is opened.editor
- the editor for the file.element
- the element under cursor.IncorrectOperationException
- On errors.