public class CreateInnerClassFromNewFix extends CreateClassFromNewFix
EMPTY_ARRAY
Constructor and Description |
---|
CreateInnerClassFromNewFix(PsiNewExpression expr) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText(java.lang.String varName) |
void |
invoke(Project project,
Editor editor,
PsiFile file)
Called when user invokes intention.
|
protected boolean |
isAllowOuterTargetClass() |
protected boolean |
isValidElement(PsiElement element) |
protected boolean |
rejectQualifier(PsiExpression qualifier) |
canBeTargetClass, getElement, getFamilyName, getNewExpression, getReferenceElement, isAvailableImpl, setupClassFromNewExpression, setupSuperCall
chooseTargetClass, filterTargetClasses, getTargetClasses, getTargetSubstitutor, getVisibility, isAvailable, positionCursor, setupGenericParameters, setupVisibility, shouldCreateStaticMember, startInWriteAction, startTemplate, startTemplate, startTemplate
canModify, getText, setText, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getElementToMakeWritable
public CreateInnerClassFromNewFix(PsiNewExpression expr)
public java.lang.String getText(java.lang.String varName)
getText
in class CreateClassFromNewFix
protected boolean isAllowOuterTargetClass()
isAllowOuterTargetClass
in class CreateClassFromNewFix
protected boolean isValidElement(PsiElement element)
isValidElement
in class CreateClassFromNewFix
protected boolean rejectQualifier(PsiExpression qualifier)
rejectQualifier
in class CreateClassFromNewFix
public void invoke(Project project, Editor editor, PsiFile file) throws IncorrectOperationException
IntentionAction
IntentionAction.startInWriteAction()
returns true
, this method is also called
inside write action.invoke
in interface IntentionAction
invoke
in class CreateClassFromNewFix
project
- the project in which the intention is invoked.editor
- the editor in which the intention is invoked.file
- the file open in the editor.IncorrectOperationException