templates.library
Class TemplateManager

java.lang.Object
  extended by templates.library.TemplateManager

public class TemplateManager
extends java.lang.Object

Singleton manager of the TemplateLibrarys available at runtime. As of Template Design plugin version 3, a single template library is maintained, in the "templates" sub-directory of the IDES installation.

Author:
Lenko Grigorov

Field Summary
protected  TemplateLibrary localLib
          The library of the local user.
protected  TemplateLibrary sharedLib
          The library shared by all users.
 
Method Summary
 java.lang.Object clone()
           
 TemplateLibrary getMainLibrary()
          Retrieve the main template library.
static TemplateManager instance()
          Access the singleton instance of the template manager.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localLib

protected TemplateLibrary localLib
The library of the local user.


sharedLib

protected TemplateLibrary sharedLib
The library shared by all users.

Note: As of Template Design plugin version 3, shared libraries are not supported. This functionality is reserved for future releases of the Template Design plugin.

Method Detail

instance

public static TemplateManager instance()
Access the singleton instance of the template manager.

Returns:
the template manager

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object
Throws:
java.lang.RuntimeException - cloning is not allowed

getMainLibrary

public TemplateLibrary getMainLibrary()
Retrieve the main template library.

Note: As of Template Design plugin version 3, only one library is supported by the TemplateManager. This method returns this library.

Returns:
the main template library