public abstract class BaseGenerateAction extends CodeInsightAction implements GenerateActionPopupTemplateInjector
AnAction.TransparentUpdateACTIONS_KEY, EMPTY_ARRAY| Modifier | Constructor and Description |
|---|---|
protected |
BaseGenerateAction(CodeInsightActionHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
AnAction |
createEditTemplateAction(DataContext dataContext) |
protected CodeInsightActionHandler |
getHandler() |
protected PsiClass |
getTargetClass(Editor editor,
PsiFile file) |
protected boolean |
isValidForClass(PsiClass targetClass) |
protected boolean |
isValidForFile(Project project,
Editor editor,
PsiFile file) |
protected void |
update(Presentation presentation,
Project project,
Editor editor,
PsiFile file) |
protected void |
update(Presentation presentation,
Project project,
Editor editor,
PsiFile file,
DataContext dataContext,
java.lang.String actionPlace) |
actionPerformed, actionPerformedImpl, beforeActionPerformedUpdate, getCommandName, getEditor, updateaddTextOverride, applyTextOverride, copyFrom, copyShortcutFrom, displayTextInToolbar, getEventProject, getShortcutSet, getTemplatePresentation, getTemplateText, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, isTransparentUpdate, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, startInTransaction, toString, unregisterCustomShortcutSet, useSmallerFontForTextInToolbarclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisDumbAwareprotected BaseGenerateAction(CodeInsightActionHandler handler)
protected void update(Presentation presentation, Project project, Editor editor, PsiFile file, DataContext dataContext, java.lang.String actionPlace)
update in class CodeInsightActionprotected void update(Presentation presentation, Project project, Editor editor, PsiFile file)
update in class CodeInsightActionpublic AnAction createEditTemplateAction(DataContext dataContext)
createEditTemplateAction in interface GenerateActionPopupTemplateInjectorprotected final CodeInsightActionHandler getHandler()
getHandler in class CodeInsightActionprotected boolean isValidForFile(Project project, Editor editor, PsiFile file)
isValidForFile in class CodeInsightActionprotected boolean isValidForClass(PsiClass targetClass)