Package | Description |
---|---|
org.eclipse.jface.text.templates |
Application programming interfaces for interaction
with the Eclipse Java User Interface text support.
|
org.eclipse.jface.text.templates.persistence |
Provides persistence support for templates.
|
org.eclipse.ui.texteditor.templates |
Application programming interfaces for interaction
with the Eclipse Java User Interface text support.
|
Modifier and Type | Method and Description |
---|---|
protected 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 by
contextTypeId . |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
TemplateContext.canEvaluate(Template template)
Tests if the specified template can be evaluated in this context.
|
boolean |
DocumentTemplateContext.canEvaluate(Template template) |
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.
use the version specifying
IRegion as third parameter |
abstract TemplateBuffer |
TemplateContext.evaluate(Template template)
Evaluates the template in this context and returns a template buffer.
|
TemplateBuffer |
DocumentTemplateContext.evaluate(Template template) |
protected abstract Image |
TemplateCompletionProcessor.getImage(Template template)
Returns the image to be used for the proposal for
template . |
protected int |
TemplateCompletionProcessor.getRelevance(Template template,
String prefix)
Returns the relevance of a template given a prefix.
|
TemplateBuffer |
TemplateTranslator.translate(Template template)
Translates a template to a
TemplateBuffer . |
Constructor and Description |
---|
Template(Template template)
Creates 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.
|
Modifier and Type | Method and Description |
---|---|
Template |
TemplateStore.findTemplate(String name)
Returns the first enabled template that matches the name.
|
Template |
TemplateStore.findTemplate(String name,
String contextTypeId)
Returns the first enabled template that matches both name and context type id.
|
Template |
TemplateStore.findTemplateById(String id)
Returns the first enabled template that matches the given template id.
|
Template |
TemplatePersistenceData.getTemplate()
Returns the template encapsulated by the receiver.
|
Template[] |
TemplateStore.getTemplates()
Returns all enabled templates.
|
Template[] |
TemplateStore.getTemplates(String contextTypeId)
Returns all enabled templates for the given context type.
|
Modifier and Type | Method and Description |
---|---|
void |
TemplatePersistenceData.setTemplate(Template template)
Sets the template encapsulated by the receiver.
|
Constructor and Description |
---|
TemplatePersistenceData(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.
|
Modifier and Type | Method and Description |
---|---|
protected Template |
TemplatePreferencePage.editTemplate(Template template,
boolean edit,
boolean isNameModifiable)
Creates the edit dialog.
|
Modifier and Type | Method and Description |
---|---|
protected Dialog |
TemplatePreferencePage.createTemplateEditDialog(Template template,
boolean edit,
boolean isNameModifiable)
Deprecated.
not called any longer as of 3.1 - use
TemplatePreferencePage.editTemplate(Template, boolean, boolean) |
protected Template |
TemplatePreferencePage.editTemplate(Template template,
boolean edit,
boolean isNameModifiable)
Creates the edit dialog.
|
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.