Uses of Class
org.eclipse.jface.text.templates.Template
Package
Description
Application programming interfaces for interaction
with the Eclipse text template support.
Provides persistence support for templates.
Application programming interfaces for interaction
with the Eclipse text editor template support.
-
Uses of Template in org.eclipse.jface.text.templates
Modifier and TypeMethodDescriptionprotected final Template
TemplateProposal.getTemplate()
Returns the template of this proposal.protected abstract Template[]
TemplateCompletionProcessor.getTemplates
(String contextTypeId) Returns the templates valid for the context type specified bycontextTypeId
.Modifier and TypeMethodDescriptionboolean
DocumentTemplateContext.canEvaluate
(Template template) abstract boolean
TemplateContext.canEvaluate
(Template template) Tests if the specified template can be evaluated in this context.protected ICompletionProposal
TemplateCompletionProcessor.createProposal
(Template template, TemplateContext context, IRegion region, int relevance) Creates a new proposal.protected ICompletionProposal
TemplateCompletionProcessor.createProposal
(Template template, TemplateContext context, Region region, int relevance) Deprecated.abstract TemplateBuffer
Evaluates the template in this context and returns a template buffer.protected abstract Image
Returns the image to be used for the proposal fortemplate
.protected int
TemplateCompletionProcessor.getRelevance
(Template template, String prefix) Returns the relevance of a template given a prefix.Translates a template to aTemplateBuffer
.ModifierConstructorDescriptionCreates a copy of a template.TemplateProposal
(Template template, TemplateContext context, IRegion region, Image image) Creates a template proposal with a template and its context.TemplateProposal
(Template template, TemplateContext context, IRegion region, Image image, int relevance) Creates a template proposal with a template and its context. -
Uses of Template in org.eclipse.jface.text.templates.persistence
Modifier and TypeMethodDescriptionvoid
TemplatePersistenceData.setTemplate
(Template template) Deprecated.ModifierConstructorDescriptionTemplatePersistenceData
(Template template, boolean enabled) Deprecated.TemplatePersistenceData
(Template template, boolean enabled, String id) Deprecated. -
Uses of Template in org.eclipse.text.templates
Modifier and TypeMethodDescriptionTemplateStoreCore.findTemplate
(String name) Returns the first enabled template that matches the name.TemplateStoreCore.findTemplate
(String name, String contextTypeId) Returns the first enabled template that matches both name and context type id.TemplateStoreCore.findTemplateById
(String id) Returns the first enabled template that matches the given template id.TemplatePersistenceData.getTemplate()
Returns the template encapsulated by the receiver.Template[]
TemplateStoreCore.getTemplates()
Returns all enabled templates.Template[]
TemplateStoreCore.getTemplates
(String contextTypeId) Returns all enabled templates for the given context type.Modifier and TypeMethodDescriptionvoid
TemplatePersistenceData.setTemplate
(Template template) Sets the template encapsulated by the receiver.ModifierConstructorDescriptionTemplatePersistenceData
(Template template, boolean enabled) Creates a new, user-added instance that is not linked to a contributed template.TemplatePersistenceData
(Template template, boolean enabled, String id) Creates a new instance. -
Uses of Template in org.eclipse.ui.texteditor.templates
Modifier and TypeMethodDescriptionprotected Template
AbstractTemplatesPage.editTemplate
(Template template, boolean edit, boolean isNameModifiable) Creates and opens a dialog to edit the given template.protected Template
TemplatePreferencePage.editTemplate
(Template template, boolean edit, boolean isNameModifiable) Creates the edit dialog.TemplatePreferencePage.EditTemplateDialog.getTemplate()
Returns the created template.Modifier and TypeMethodDescriptionprotected Dialog
TemplatePreferencePage.createTemplateEditDialog
(Template template, boolean edit, boolean isNameModifiable) Deprecated.not called any longer as of 3.1 - useTemplatePreferencePage.editTemplate(Template, boolean, boolean)
protected Template
AbstractTemplatesPage.editTemplate
(Template template, boolean edit, boolean isNameModifiable) Creates and opens a dialog to edit the given template.protected Template
TemplatePreferencePage.editTemplate
(Template template, boolean edit, boolean isNameModifiable) Creates the edit dialog.protected Image
Returns the image to be used for the given template.protected abstract void
AbstractTemplatesPage.insertTemplate
(Template template, IDocument document) Inserts the given template into the editor.protected abstract boolean
AbstractTemplatesPage.isValidTemplate
(IDocument document, Template template, int offset, int length) Checks whether the given template is valid for the document at the given offset and length.protected void
AbstractTemplatesPage.updatePatternViewer
(Template template) Update the pattern viewer to show the current template.ModifierConstructorDescriptionEditTemplateDialog
(Shell parent, Template template, boolean edit, boolean isNameModifiable, ContextTypeRegistry registry) Creates a new dialog.
IRegion
as third parameter