|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.text.templates.persistence.TemplateStore org.eclipse.xtext.ui.editor.templates.XtextTemplateStore
public class XtextTemplateStore
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)
Handles an IOException thrown during reloading the preferences due to a preference
store update. |
protected void |
loadContributedTemplates()
Hook method to load contributed templates. |
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 |
---|
@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 |
---|
protected java.net.URL getTemplateFileURL(org.eclipse.ui.plugin.AbstractUIPlugin plugin)
protected void loadContributedTemplates() throws java.io.IOException
org.eclipse.jface.text.templates.persistence.TemplateStore
The default implementation does nothing.
loadContributedTemplates
in class org.eclipse.jface.text.templates.persistence.TemplateStore
java.io.IOException
- if loading failsprotected void handleException(java.io.IOException x)
org.eclipse.jface.text.templates.persistence.TemplateStore
IOException
thrown during reloading the preferences due to a preference
store update. The default is to write to stderr.
handleException
in class org.eclipse.jface.text.templates.persistence.TemplateStore
x
- the exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |