|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.text.templates.persistence.TemplateStore
org.eclipse.ui.editors.text.templates.ContributionTemplateStore
public class ContributionTemplateStore
Manages templates. Handles reading default templates contributed via XML and user-defined (or overridden) templates stored in the preferences.
Clients may instantiate but not subclass this class.
| Constructor Summary | |
|---|---|
ContributionTemplateStore(ContextTypeRegistry registry,
IPreferenceStore store,
java.lang.String key)
Creates a new template store with a context type registry. |
|
ContributionTemplateStore(IPreferenceStore store,
java.lang.String key)
Creates a new template store. |
|
| Method Summary | |
|---|---|
protected void |
handleException(java.io.IOException x)
Handles an IOException thrown during reloading the preferences due to a preference
store update. |
protected void |
loadContributedTemplates()
Loads the templates contributed via the templates extension point. |
| 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 |
|---|
public ContributionTemplateStore(IPreferenceStore store,
java.lang.String key)
store - the preference store in which to store custom templates
under keykey - the key into store where to store custom
templates
public ContributionTemplateStore(ContextTypeRegistry registry,
IPreferenceStore store,
java.lang.String key)
null.
registry - a context type registry, or null if all
templates should be loadedstore - the preference store in which to store custom templates
under keykey - the key into store where to store custom
templates| Method Detail |
|---|
protected void loadContributedTemplates()
throws java.io.IOException
loadContributedTemplates in class TemplateStorejava.io.IOException - if loading failsprotected void handleException(java.io.IOException x)
TemplateStoreIOException thrown during reloading the preferences due to a preference
store update. The default is to write to stderr.
handleException in class TemplateStorex - the exception
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.