public class ConvertCompareToToEqualsIntention extends BaseElementAtCaretIntentionAction
EMPTY_ARRAY| Constructor and Description |
|---|
ConvertCompareToToEqualsIntention() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFamilyName()
Returns the name of the family of intentions.
|
java.lang.String |
getText()
Returns text to be shown in the list of available actions, if this action
is available.
|
void |
invoke(Project project,
Editor editor,
PsiElement element)
Invokes intention action for the element under cursor.
|
boolean |
isAvailable(Project project,
Editor editor,
PsiElement element)
Checks whether this intention is available at a caret offset in file.
|
checkFile, invoke, isAvailablecanModify, setText, startInWriteAction, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetElementToMakeWritablepublic void invoke(Project project, Editor editor, PsiElement element) throws IncorrectOperationException
BaseElementAtCaretIntentionActioninvoke in class BaseElementAtCaretIntentionActionproject - the project in which the file is opened.editor - the editor for the file.element - the element under cursor.IncorrectOperationException - On errors.public boolean isAvailable(Project project, Editor editor, PsiElement element)
BaseElementAtCaretIntentionActiontrue, a light bulb for this intention is shown.isAvailable in class BaseElementAtCaretIntentionActionproject - the project in which the availability is checked.editor - the editor in which the intention will be invoked.element - the element under caret.public java.lang.String getFamilyName()
IntentionActionIntentionManager.registerIntentionAndMetaData(IntentionAction, String...)public java.lang.String getText()
IntentionActiongetText in interface IntentionActiongetText in class BaseIntentionActionIntentionAction.isAvailable(Project, Editor, PsiFile)