org.eclipse.xtext.ui.editor.templates
Class XtextTemplateStore

java.lang.Object
  extended by org.eclipse.jface.text.templates.persistence.TemplateStore
      extended by org.eclipse.xtext.ui.editor.templates.XtextTemplateStore

public class XtextTemplateStore
extends org.eclipse.jface.text.templates.persistence.TemplateStore

Author:
Sven Efftinge - Initial contribution and API

Constructor Summary
XtextTemplateStore(org.eclipse.jface.text.templates.ContextTypeRegistry registry, org.eclipse.jface.preference.IPreferenceStore store, java.lang.String key, org.eclipse.ui.plugin.AbstractUIPlugin plugin)
           
 
Method Summary
protected  java.net.URL getTemplateFileURL(org.eclipse.ui.plugin.AbstractUIPlugin plugin)
           
protected  void handleException(java.io.IOException x)
           
protected  void loadContributedTemplates()
           
 
Methods inherited from class org.eclipse.jface.text.templates.persistence.TemplateStore
add, delete, findTemplate, findTemplate, findTemplateById, getRegistry, getTemplateData, getTemplateData, getTemplates, getTemplates, internalAdd, load, restoreDefaults, restoreDefaults, restoreDeleted, save, startListeningForPreferenceChanges, stopListeningForPreferenceChanges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XtextTemplateStore

@Inject
public XtextTemplateStore(org.eclipse.jface.text.templates.ContextTypeRegistry registry,
                                 org.eclipse.jface.preference.IPreferenceStore store,
                                 java.lang.String key,
                                 org.eclipse.ui.plugin.AbstractUIPlugin plugin)
Method Detail

getTemplateFileURL

protected java.net.URL getTemplateFileURL(org.eclipse.ui.plugin.AbstractUIPlugin plugin)

loadContributedTemplates

protected void loadContributedTemplates()
                                 throws java.io.IOException
Overrides:
loadContributedTemplates in class org.eclipse.jface.text.templates.persistence.TemplateStore
Throws:
java.io.IOException

handleException

protected void handleException(java.io.IOException x)
Overrides:
handleException in class org.eclipse.jface.text.templates.persistence.TemplateStore