public class VariableArrayTypeFix extends LocalQuickFixOnPsiElement
LOG, myEndElement, myStartElementEMPTY_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, isAvailableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetElementToMakeWritablepublic static VariableArrayTypeFix createFix(PsiArrayInitializerExpression initializer, PsiType componentType)
public java.lang.String getText()
getText in class LocalQuickFixOnPsiElementpublic java.lang.String getFamilyName()
QuickFix.getName().public boolean isAvailable(Project project, PsiFile file, PsiElement startElement, PsiElement endElement)
isAvailable in class LocalQuickFixOnPsiElementpublic boolean startInWriteAction()
WriteActionAwarefalse 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