Modelers

org.topcased.modeler.extensions
Class TemplatesManager

java.lang.Object
  extended by AbstractExtensionManager
      extended by org.topcased.modeler.extensions.TemplatesManager

public class TemplatesManager
extends AbstractExtensionManager

Class that stores the templates registered with the templates extension point.


Method Summary
protected  void addExtension(org.eclipse.core.runtime.IExtension extension)
           
 TemplateDescriptor find(java.lang.String id)
          Find a descriptor in the registry.
static TemplatesManager getInstance()
          Get the shared instance.
 TemplateDescriptor[] getTemplates()
          Get an enumeration of template descriptors.
 TemplateDescriptor[] getTemplates(java.lang.String editorId)
          Get an enumeration of template descriptors that are applicable only for the given editorId
protected  void removeExtension(org.eclipse.core.runtime.IExtension extension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TemplatesManager getInstance()
Get the shared instance.

Returns:
the diagrams manager

find

public TemplateDescriptor find(java.lang.String id)
Find a descriptor in the registry.

Parameters:
id - the searched template id
Returns:
the template or null if not found

getTemplates

public TemplateDescriptor[] getTemplates()
Get an enumeration of template descriptors.

Returns:
The registered templates

getTemplates

public TemplateDescriptor[] getTemplates(java.lang.String editorId)
Get an enumeration of template descriptors that are applicable only for the given editorId

Parameters:
editorId - the id of the Topcased editor
Returns:
The registered templates of a given Topcased editor

addExtension

protected void addExtension(org.eclipse.core.runtime.IExtension extension)
See Also:
org.topcased.facilities.extensions.AbstractExtensionManager#addExtension(org.eclipse.core.runtime.IExtension)

removeExtension

protected void removeExtension(org.eclipse.core.runtime.IExtension extension)
See Also:
org.topcased.facilities.extensions.AbstractExtensionManager#removeExtension(org.eclipse.core.runtime.IExtension)

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.