Class TemplateCore
java.lang.Object
org.eclipse.cdt.core.templateengine.TemplateCore
TemplateCore class is responsible providing the non-UI part of template and
initiating process part of Template Engine. This is created per TemplateDescriptor basis.
Once The Template is created it creates a TemplateDescriptor for the XML file name given.
Template class extends this class with additional UI elements that are part of the template.
- Since:
- 4.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.runtime.IStatus[]
executeTemplateProcesses
(org.eclipse.core.runtime.IProgressMonitor monitor, boolean showError) initializeProcessBlockList() will create the ProcessBlockList, processPorcessBlockList() will invoke each process execution by assigning resources to each process (Ref.Returns All Missing Macros In Processes.getLabel()
This is the List of IDs from TemplateDescriptor with "attribute" Persist as "true"TemplateDescriptor for which, this Template is created.static TemplateCore
getTemplate
(TemplateInfo templateInfo) Gets the TemplateTemplateDescriptor for which, this Template is created.return the TemplateInfo instance corresponding to this Template.return the ValueStore maintained by this Template.void
setDirty()
sets DirtytoString()
-
Field Details
-
TEMPLATE_ID_CASE_INSENSITIVE_COMPARATOR
-
-
Constructor Details
-
TemplateCore
- Parameters:
templateInfo
- may not be null- Throws:
TemplateInitializationException
-
-
Method Details
-
getAllMissingMacrosInProcesses
Returns All Missing Macros In Processes.- Returns:
- Set
-
getValueStore
return the ValueStore maintained by this Template.- Returns:
- ValueStore.
-
getPersistTrueIDs
This is the List of IDs from TemplateDescriptor with "attribute" Persist as "true"- Returns:
- Vector of IDs.
-
getTemplateInfo
return the TemplateInfo instance corresponding to this Template.- Returns:
- TemplateInfo.
-
getTemplateDescriptor
TemplateDescriptor for which, this Template is created. -
getDescription
- Returns:
- String, which contains the description
-
getTemplateId
- Returns:
- String, which contains the id of the template
-
getTemplateType
- Returns:
- String, which contains the id of the template
-
getLabel
- Returns:
- String, which contains the Label
-
getProcessHandler
TemplateDescriptor for which, this Template is created. -
toString
-
setDirty
public void setDirty()sets Dirty -
executeTemplateProcesses
public org.eclipse.core.runtime.IStatus[] executeTemplateProcesses(org.eclipse.core.runtime.IProgressMonitor monitor, boolean showError) initializeProcessBlockList() will create the ProcessBlockList, processPorcessBlockList() will invoke each process execution by assigning resources to each process (Ref. ProcessResourceManager).- Parameters:
monitor
-
-
getTemplate
public static TemplateCore getTemplate(TemplateInfo templateInfo) throws TemplateInitializationException Gets the Template- Parameters:
templateInfo
-- Throws:
TemplateInitializationException
- Since:
- 4.0
-