Class TemplateStore

java.lang.Object
org.eclipse.text.templates.TemplateStoreCore
org.eclipse.jface.text.templates.persistence.TemplateStore
Direct Known Subclasses:
ContributionTemplateStore

public class TemplateStore extends TemplateStoreCore
A collection of templates. Clients may instantiate this class. In order to load templates contributed using the org.eclipse.ui.editors.templates extension point, use a ContributionTemplateStore.
Since:
3.0
  • Constructor Details

    • TemplateStore

      public TemplateStore(IPreferenceStore store, String key)
      Creates a new template store.
      Parameters:
      store - the preference store in which to store custom templates under key
      key - the key into store where to store custom templates
    • TemplateStore

      public TemplateStore(ContextTypeRegistry registry, IPreferenceStore store, String key)
      Creates a new template store with a context type registry. Only templates that specify a context type contained in the registry will be loaded by this store if the registry is not null.
      Parameters:
      registry - a context type registry, or null if all templates should be loaded
      store - the preference store in which to store custom templates under key
      key - the key into store where to store custom templates
  • Method Details