Class TestMeTemplateManager
java.lang.Object
com.intellij.ide.fileTemplates.FileTemplateManager
com.weirddev.testme.intellij.ui.template.TestMeTemplateManager
- All Implemented Interfaces:
com.intellij.openapi.components.PersistentStateComponent<TestMeTemplateManager.State>
public class TestMeTemplateManager
extends com.intellij.ide.fileTemplates.FileTemplateManager
implements com.intellij.openapi.components.PersistentStateComponent<TestMeTemplateManager.State>
- See Also:
-
FileTemplateManagerImpl
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.intellij.ide.fileTemplates.FileTemplateManager
CODE_TEMPLATES_CATEGORY, DEFAULT_TEMPLATE_PROPERTIES, DEFAULT_TEMPLATES_CATEGORY, FILE_HEADER_TEMPLATE_NAME, INCLUDES_TEMPLATES_CATEGORY, INTERNAL_HTML5_TEMPLATE_NAME, INTERNAL_TEMPLATES_CATEGORY, J2EE_TEMPLATES_CATEGORY, PROJECT_NAME_VARIABLE, RECENT_TEMPLATES_SIZE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRecentName
(@NotNull @NonNls String name) @NotNull com.intellij.ide.fileTemplates.FileTemplate
addTemplate
(@NotNull String name, @NotNull String extension) com.intellij.ide.fileTemplates.FileTemplate
findCustomTestTemplate
(@NotNull @NonNls String templateName) com.intellij.ide.fileTemplates.FileTemplate
findInternalTemplate
(@NotNull @NonNls String templateName) @NotNull com.intellij.ide.fileTemplates.FileTemplate[]
@NotNull com.intellij.ide.fileTemplates.FileTemplate[]
@NotNull com.intellij.ide.fileTemplates.FileTemplate[]
@NotNull com.intellij.ide.fileTemplates.FileTemplate[]
@NotNull com.intellij.ide.fileTemplates.FileTemplate
getCodeTemplate
(@NotNull @NonNls String templateName) @NotNull com.intellij.ide.fileTemplates.FileTemplatesScheme
static TestMeTemplateManager
@NotNull Properties
@NotNull com.intellij.ide.fileTemplates.FileTemplate
getDefaultTemplate
(@NotNull String name) static TestMeTemplateManager
getInstance
(@NotNull com.intellij.openapi.project.Project project) com.intellij.ide.fileTemplates.FileTemplate
getInternalTemplate
(@NotNull @NonNls String templateName) @NotNull com.intellij.ide.fileTemplates.FileTemplate[]
@NotNull com.intellij.ide.fileTemplates.FileTemplate
getJ2eeTemplate
(@NotNull @NonNls String templateName) com.intellij.ide.fileTemplates.FileTemplate
getPattern
(@NotNull String name) @Nullable com.intellij.ide.fileTemplates.FileTemplatesScheme
@NotNull Collection<String>
@Nullable TestMeTemplateManager.State
getState()
com.intellij.ide.fileTemplates.FileTemplate
getTemplate
(@NotNull String templateName) @NotNull com.intellij.ide.fileTemplates.FileTemplate[]
getTemplates
(@NotNull String category) @NotNull List<TemplateDescriptor>
@NotNull String
internalTemplateToSubject
(@NotNull @NonNls String templateName) void
loadState
(@NotNull TestMeTemplateManager.State state) void
removeTemplate
(@NotNull com.intellij.ide.fileTemplates.FileTemplate template) void
void
setCurrentScheme
(@NotNull com.intellij.ide.fileTemplates.FileTemplatesScheme scheme) void
setTemplates
(@NotNull String templatesCategory, @NotNull Collection<? extends com.intellij.ide.fileTemplates.FileTemplate> templates) void
setTestDate
(Date testDate) Methods inherited from class com.intellij.ide.fileTemplates.FileTemplateManager
getDefaultProperties, getInstance
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.intellij.openapi.components.PersistentStateComponent
initializeComponent, noStateLoaded
-
Field Details
-
TEST_TEMPLATES_CATEGORY
- See Also:
-
-
Method Details
-
getInstance
public static TestMeTemplateManager getInstance(@NotNull @NotNull com.intellij.openapi.project.Project project) -
getDefaultInstance
-
getCurrentScheme
@NotNull public @NotNull com.intellij.ide.fileTemplates.FileTemplatesScheme getCurrentScheme()- Specified by:
getCurrentScheme
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
setCurrentScheme
public void setCurrentScheme(@NotNull @NotNull com.intellij.ide.fileTemplates.FileTemplatesScheme scheme) - Specified by:
setCurrentScheme
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getProjectScheme
@Nullable public @Nullable com.intellij.ide.fileTemplates.FileTemplatesScheme getProjectScheme()- Specified by:
getProjectScheme
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getTemplates
@NotNull public @NotNull com.intellij.ide.fileTemplates.FileTemplate[] getTemplates(@NotNull @NotNull String category) - Specified by:
getTemplates
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getAllTemplates
@NotNull public @NotNull com.intellij.ide.fileTemplates.FileTemplate[] getAllTemplates()- Specified by:
getAllTemplates
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getTemplate
public com.intellij.ide.fileTemplates.FileTemplate getTemplate(@NotNull @NotNull String templateName) - Specified by:
getTemplate
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
addTemplate
@NotNull public @NotNull com.intellij.ide.fileTemplates.FileTemplate addTemplate(@NotNull @NotNull String name, @NotNull @NotNull String extension) - Specified by:
addTemplate
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
removeTemplate
public void removeTemplate(@NotNull @NotNull com.intellij.ide.fileTemplates.FileTemplate template) - Specified by:
removeTemplate
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getDefaultProperties
- Specified by:
getDefaultProperties
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getRecentNames
- Specified by:
getRecentNames
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
addRecentName
- Specified by:
addRecentName
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getInternalTemplates
@NotNull public @NotNull com.intellij.ide.fileTemplates.FileTemplate[] getInternalTemplates()- Specified by:
getInternalTemplates
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getTestTemplates
-
getInternalTemplate
public com.intellij.ide.fileTemplates.FileTemplate getInternalTemplate(@NotNull @NonNls @NotNull @NonNls String templateName) - Specified by:
getInternalTemplate
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
findInternalTemplate
public com.intellij.ide.fileTemplates.FileTemplate findInternalTemplate(@NotNull @NonNls @NotNull @NonNls String templateName) - Specified by:
findInternalTemplate
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
findCustomTestTemplate
public com.intellij.ide.fileTemplates.FileTemplate findCustomTestTemplate(@NotNull @NonNls @NotNull @NonNls String templateName) -
internalTemplateToSubject
@NotNull public @NotNull String internalTemplateToSubject(@NotNull @NonNls @NotNull @NonNls String templateName) - Specified by:
internalTemplateToSubject
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getCodeTemplate
@NotNull public @NotNull com.intellij.ide.fileTemplates.FileTemplate getCodeTemplate(@NotNull @NonNls @NotNull @NonNls String templateName) - Specified by:
getCodeTemplate
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getJ2eeTemplate
@NotNull public @NotNull com.intellij.ide.fileTemplates.FileTemplate getJ2eeTemplate(@NotNull @NonNls @NotNull @NonNls String templateName) - Specified by:
getJ2eeTemplate
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getDefaultTemplate
@NotNull public @NotNull com.intellij.ide.fileTemplates.FileTemplate getDefaultTemplate(@NotNull @NotNull String name) - Specified by:
getDefaultTemplate
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
setTemplates
public void setTemplates(@NotNull @NotNull String templatesCategory, @NotNull @NotNull Collection<? extends com.intellij.ide.fileTemplates.FileTemplate> templates) - Specified by:
setTemplates
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getAllPatterns
@NotNull public @NotNull com.intellij.ide.fileTemplates.FileTemplate[] getAllPatterns()- Specified by:
getAllPatterns
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getPattern
- Specified by:
getPattern
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getAllCodeTemplates
@NotNull public @NotNull com.intellij.ide.fileTemplates.FileTemplate[] getAllCodeTemplates()- Specified by:
getAllCodeTemplates
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getAllJ2eeTemplates
@NotNull public @NotNull com.intellij.ide.fileTemplates.FileTemplate[] getAllJ2eeTemplates()- Specified by:
getAllJ2eeTemplates
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
saveAllTemplates
public void saveAllTemplates()- Specified by:
saveAllTemplates
in classcom.intellij.ide.fileTemplates.FileTemplateManager
-
getDefaultTemplateDescription
-
setTestDate
-
getState
- Specified by:
getState
in interfacecom.intellij.openapi.components.PersistentStateComponent<TestMeTemplateManager.State>
-
loadState
- Specified by:
loadState
in interfacecom.intellij.openapi.components.PersistentStateComponent<TestMeTemplateManager.State>
-