public class VariableArrayTypeFix extends LocalQuickFixOnPsiElement
LOG, myEndElement, myStartElement
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
static VariableArrayTypeFix |
createFix(PsiArrayInitializerExpression initializer,
PsiType componentType) |
java.lang.String |
getFamilyName() |
java.lang.String |
getText() |
void |
invoke(Project project,
PsiFile file,
PsiElement startElement,
PsiElement endElement) |
boolean |
isAvailable(Project project,
PsiFile file,
PsiElement startElement,
PsiElement endElement) |
boolean |
startInWriteAction()
Indicate whether this action should be invoked inside write action.
|
applyFix, applyFix, getEndElement, getName, getStartElement, isAvailable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementToMakeWritable
public static VariableArrayTypeFix createFix(PsiArrayInitializerExpression initializer, PsiType componentType)
public java.lang.String getText()
getText
in class LocalQuickFixOnPsiElement
public java.lang.String getFamilyName()
QuickFix.getName()
.public boolean isAvailable(Project project, PsiFile file, PsiElement startElement, PsiElement endElement)
isAvailable
in class LocalQuickFixOnPsiElement
public boolean startInWriteAction()
WriteActionAware
false
if e.g. 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)
.true
if the action requires a write action (default), false
otherwise.public void invoke(Project project, PsiFile file, PsiElement startElement, PsiElement endElement)
invoke
in class LocalQuickFixOnPsiElement