public abstract class BaseMoveInitializerToMethodAction extends PsiElementBaseIntentionAction
MoveInitializerToConstructorActionEMPTY_ARRAY| Constructor and Description |
|---|
BaseMoveInitializerToMethodAction() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.util.Collection<PsiMethod> |
getOrCreateMethods(Project project,
Editor editor,
PsiFile file,
PsiClass aClass) |
protected abstract java.util.Collection<java.lang.String> |
getUnsuitableModifiers() |
void |
invoke(Project project,
Editor editor,
PsiElement element)
Invokes intention action for the element under caret.
|
boolean |
isAvailable(Project project,
Editor editor,
PsiElement element)
Checks whether this intention is available at a caret offset in file.
|
checkFile, invoke, isAvailablecanModify, getText, setText, startInWriteAction, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFamilyNamegetElementToMakeWritablepublic boolean isAvailable(Project project, Editor editor, PsiElement element)
PsiElementBaseIntentionActionisAvailable in class PsiElementBaseIntentionActionproject - the project in which the availability is checked.editor - the editor in which the intention will be invoked.element - the element under caret.protected abstract java.util.Collection<java.lang.String> getUnsuitableModifiers()
public void invoke(Project project, Editor editor, PsiElement element) throws IncorrectOperationException
PsiElementBaseIntentionActioninvoke in class PsiElementBaseIntentionActionproject - the project in which the file is opened.editor - the editor for the file.element - the element under cursor.IncorrectOperationException