public class BaseGenerateTestSupportMethodAction extends BaseGenerateAction
Modifier and Type | Class and Description |
---|---|
static class |
BaseGenerateTestSupportMethodAction.MyHandler |
AnAction.TransparentUpdate
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG |
ACTIONS_KEY, EMPTY_ARRAY
Constructor and Description |
---|
BaseGenerateTestSupportMethodAction(TestIntegrationUtils.MethodKind methodKind) |
Modifier and Type | Method and Description |
---|---|
AnAction |
createEditTemplateAction(DataContext dataContext) |
protected PsiClass |
getTargetClass(Editor editor,
PsiFile file) |
protected boolean |
isValidFor(PsiClass targetClass,
TestFramework framework) |
protected boolean |
isValidForClass(PsiClass targetClass) |
protected boolean |
isValidForFile(Project project,
Editor editor,
PsiFile file) |
getHandler, update, update
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 static final Logger LOG
public BaseGenerateTestSupportMethodAction(TestIntegrationUtils.MethodKind methodKind)
public AnAction createEditTemplateAction(DataContext dataContext)
createEditTemplateAction
in interface GenerateActionPopupTemplateInjector
createEditTemplateAction
in class BaseGenerateAction
protected PsiClass getTargetClass(Editor editor, PsiFile file)
getTargetClass
in class BaseGenerateAction
protected boolean isValidForClass(PsiClass targetClass)
isValidForClass
in class BaseGenerateAction
protected boolean isValidForFile(Project project, Editor editor, PsiFile file)
isValidForFile
in class BaseGenerateAction
protected boolean isValidFor(PsiClass targetClass, TestFramework framework)