com.borland.primetime.insight.template
Class TemplateManager

java.lang.Object
  |
  +--com.borland.primetime.insight.template.TemplateManager

public class TemplateManager
extends java.lang.Object

This class manages CodeTemplates. There should be one static instance of this class in the system, and it can be accessed through its static members.


Field Summary
static java.lang.String TEMPLATE_DELIMITERS
           
protected static TemplateSet templateSet
           
 
Method Summary
static CodeTemplate[] getStockTemplates()
           
static CodeTemplate[] getTemplates()
           
static void invoke(EditorPane editor)
           
static boolean isValidTemplateName(java.lang.String text)
          Return true if the specified text is a valid template name.
static void setTemplates(CodeTemplate[] templates)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMPLATE_DELIMITERS

public static java.lang.String TEMPLATE_DELIMITERS

templateSet

protected static TemplateSet templateSet
Method Detail

invoke

public static void invoke(EditorPane editor)

isValidTemplateName

public static boolean isValidTemplateName(java.lang.String text)
Return true if the specified text is a valid template name.

getTemplates

public static CodeTemplate[] getTemplates()

setTemplates

public static void setTemplates(CodeTemplate[] templates)

getStockTemplates

public static CodeTemplate[] getStockTemplates()