public abstract class JavaCreateTemplateInPackageAction<T extends PsiElement> extends CreateTemplateInPackageAction<T>
AnAction.TransparentUpdate
LOG
ACTIONS_KEY, EMPTY_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
JavaCreateTemplateInPackageAction(java.lang.String text,
java.lang.String description,
javax.swing.Icon icon,
boolean inSourceOnly) |
protected |
JavaCreateTemplateInPackageAction(java.lang.String text,
java.lang.String description,
javax.swing.Icon icon,
java.util.Set<? extends JpsModuleSourceRootType<?>> rootTypes) |
protected |
JavaCreateTemplateInPackageAction(java.util.function.Supplier<java.lang.String> dynamicText,
java.util.function.Supplier<java.lang.String> dynamicDescription,
javax.swing.Icon icon,
boolean inSourceOnly) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkPackageExists(PsiDirectory directory) |
static boolean |
doCheckPackageExists(PsiDirectory directory) |
createFile, doCreate, getNavigationElement, isAvailable, isAvailable, removeExtension
actionPerformed, buildDialog, getActionName, getDefaultTemplateName, getDefaultTemplateProperty, getErrorTitle, moveCaretAfterNameIdentifier, postProcess, update
addTextOverride, applyTextOverride, beforeActionPerformedUpdate, 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
startInWriteAction
isDumbAware
protected JavaCreateTemplateInPackageAction(java.lang.String text, java.lang.String description, javax.swing.Icon icon, boolean inSourceOnly)
protected JavaCreateTemplateInPackageAction(java.util.function.Supplier<java.lang.String> dynamicText, java.util.function.Supplier<java.lang.String> dynamicDescription, javax.swing.Icon icon, boolean inSourceOnly)
protected JavaCreateTemplateInPackageAction(java.lang.String text, java.lang.String description, javax.swing.Icon icon, java.util.Set<? extends JpsModuleSourceRootType<?>> rootTypes)
protected boolean checkPackageExists(PsiDirectory directory)
checkPackageExists
in class CreateTemplateInPackageAction<T extends PsiElement>
public static boolean doCheckPackageExists(PsiDirectory directory)