public class ContributionTemplateStore extends TemplateStore
Clients may instantiate but not subclass this class.
| Constructor and Description |
|---|
ContributionTemplateStore(ContextTypeRegistry registry,
IPreferenceStore store,
String key)
Creates a new template store with a context type registry.
|
ContributionTemplateStore(IPreferenceStore store,
String key)
Creates a new template store.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleException(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.
|
add, delete, findTemplate, findTemplate, findTemplateById, getRegistry, getTemplateData, getTemplateData, getTemplates, getTemplates, internalAdd, load, restoreDefaults, restoreDeleted, save, startListeningForPreferenceChanges, stopListeningForPreferenceChangespublic ContributionTemplateStore(IPreferenceStore store, String key)
store - the preference store in which to store custom templates
under keykey - the key into store where to store custom
templatespublic ContributionTemplateStore(ContextTypeRegistry registry, IPreferenceStore store, 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
templatesprotected void loadContributedTemplates()
throws IOException
loadContributedTemplates in class TemplateStoreIOException - if loading failsprotected void handleException(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 exceptionGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.