Interface TemplateManager
@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface TemplateManager
Utilities related to providing new file templates...
- Since:
- 18
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intShow archive templates onlystatic final intShow defaults onlystatic final intShow Eclipse defaults onlystatic final intShow file templates onlystatic final intShow only DITA templates (the ones with "dita" type set in properties or with no type specified)static final intShow recently used templates only -
Method Summary
Modifier and TypeMethodDescriptiongetAllTemplatesCategories(int templateToShow) Get the templates categories.getTemplatesFromConfigs(List<ro.sync.exml.workspace.api.options.ConfigResource> configs, int templateToShow) Get the templates categories from a list of config resources.
-
Field Details
-
SHOW_DEFAULTS
static final int SHOW_DEFAULTSShow defaults only- See Also:
-
SHOW_FILE_TEMPLATES
static final int SHOW_FILE_TEMPLATESShow file templates only- See Also:
-
SHOW_ARCHIVE_TEMPLATES
static final int SHOW_ARCHIVE_TEMPLATESShow archive templates only- See Also:
-
SHOW_RECENTLY_USED
static final int SHOW_RECENTLY_USEDShow recently used templates only- See Also:
-
SHOW_ECLIPSE_DEFAULTS
static final int SHOW_ECLIPSE_DEFAULTSShow Eclipse defaults only- See Also:
-
SHOW_ONLY_DITA_TEMPLATES
static final int SHOW_ONLY_DITA_TEMPLATESShow only DITA templates (the ones with "dita" type set in properties or with no type specified)- See Also:
-
-
Method Details
-
getAllTemplatesCategories
Get the templates categories.- Parameters:
templateToShow- Bit level OR between:- Returns:
- The available templates categories.
-
getTemplatesFromConfigs
List<TemplatesCategory> getTemplatesFromConfigs(List<ro.sync.exml.workspace.api.options.ConfigResource> configs, int templateToShow) Get the templates categories from a list of config resources.- Parameters:
configs- The config resources to convert to templates.templateToShow- Bit level OR between:- Returns:
- The available templates categories from the specified config resources.
- Since:
- 28.0
-