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, restoreDefaults, restoreDeleted, save, startListeningForPreferenceChanges, stopListeningForPreferenceChanges
public ContributionTemplateStore(IPreferenceStore store, String key)
store
- the preference store in which to store custom templates
under key
key
- 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 key
key
- the key into store
where to store custom
templatesprotected void loadContributedTemplates() throws IOException
loadContributedTemplates
in class TemplateStore
IOException
- if loading failsprotected void handleException(IOException x)
TemplateStore
IOException
thrown during reloading the preferences due to a preference
store update. The default is to write to stderr.handleException
in class TemplateStore
x
- the exception
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.