public abstract class BaseGenerateAction extends CodeInsightAction implements GenerateActionPopupTemplateInjector
AnAction.TransparentUpdate
ACTIONS_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, update
addTextOverride, applyTextOverride, copyFrom, copyShortcutFrom, displayTextInToolbar, getEventProject, getShortcutSet, getTemplatePresentation, getTemplateText, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, isTransparentUpdate, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, startInTransaction, toString, unregisterCustomShortcutSet, useSmallerFontForTextInToolbar
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isDumbAware
protected BaseGenerateAction(CodeInsightActionHandler handler)
protected void update(Presentation presentation, Project project, Editor editor, PsiFile file, DataContext dataContext, java.lang.String actionPlace)
update
in class CodeInsightAction
protected void update(Presentation presentation, Project project, Editor editor, PsiFile file)
update
in class CodeInsightAction
public AnAction createEditTemplateAction(DataContext dataContext)
createEditTemplateAction
in interface GenerateActionPopupTemplateInjector
protected final CodeInsightActionHandler getHandler()
getHandler
in class CodeInsightAction
protected boolean isValidForFile(Project project, Editor editor, PsiFile file)
isValidForFile
in class CodeInsightAction
protected boolean isValidForClass(PsiClass targetClass)