public class InsertThisFix extends InsertConstructorCallFix
PriorityAction.Priority
myConstructor
EMPTY_ARRAY
Constructor and Description |
---|
InsertThisFix(PsiMethod constructor) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAvailable(Project project,
Editor editor,
PsiFile file)
Checks whether this intention is available at a caret offset in the file.
|
getElementToMakeWritable, getFamilyName, getText, invoke, startInWriteAction
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority
public InsertThisFix(PsiMethod constructor)
public boolean isAvailable(Project project, Editor editor, PsiFile file)
IntentionAction
isAvailable
in interface IntentionAction
isAvailable
in class InsertConstructorCallFix
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.