|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.borland.primetime.insight.template.TemplateSet
This class manages one set of CodeTemplates.
Field Summary | |
protected static int |
maxDescriptionLength
The maximum length of a description. |
protected static int |
maxNameLength
The maximum length of a template name. |
protected static CodeTemplate[] |
templateMap
The set of templates this class manages. |
Constructor Summary | |
TemplateSet()
|
Method Summary | |
static void |
addTemplate(CodeTemplate template)
Add a new CodeTemplate belonging to the collection of templates this class manages. |
static int |
getMaxDescriptionLength()
What is the maximum length of a description. |
static int |
getMaxNameLength()
What is the maximum length of a template name. |
static CodeTemplate[] |
getStockTemplates(boolean namesOnly)
Get the collection of stock templates, which is a hardcoded collection of templates usually displayed in the editor options window on the templates tab. |
static CodeTemplate[] |
getTemplates()
Return the array of CodeTemplates belonging to this class. |
static boolean |
isStockTemplate(java.lang.String name)
Does there exist a stock template with the given name. |
static void |
setTemplates(CodeTemplate[] templates)
Set the array of CodeTemplates belonging to this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static CodeTemplate[] templateMap
protected static int maxNameLength
protected static int maxDescriptionLength
Constructor Detail |
public TemplateSet()
Method Detail |
public static CodeTemplate[] getTemplates()
public static void setTemplates(CodeTemplate[] templates)
The
- new collection of templates this class manages.public static void addTemplate(CodeTemplate template)
The
- new template.public static int getMaxNameLength()
public static int getMaxDescriptionLength()
public static CodeTemplate[] getStockTemplates(boolean namesOnly)
namesOnly
- If true, the templates only have their names
filled in.public static boolean isStockTemplate(java.lang.String name)
The
- name of a template
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |