|
Eclipse Platform Release 3.1 |
|||||||||||
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
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,
String key)
Creates a new template store with a context type registry. |
|
ContributionTemplateStore(IPreferenceStore store,
String key)
Creates a new template store. |
Method Summary | |
---|---|
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, restoreDeleted, save |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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
templatesMethod Detail |
protected void loadContributedTemplates() throws IOException
loadContributedTemplates
in class TemplateStore
IOException
- if loading fails
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.