Package | Description |
---|---|
org.eclipse.jface.text.templates |
Application programming interfaces for interaction
with the Eclipse text template support.
|
Modifier and Type | Class and Description |
---|---|
class |
DocumentTemplateContext
Instances of this class describe the context of a template as a region of
a document.
|
Modifier and Type | Method and Description |
---|---|
protected TemplateContext |
TemplateCompletionProcessor.createContext(ITextViewer viewer,
IRegion region)
Creates a concrete template context for the given region in the document.
|
protected TemplateContext |
TemplateProposal.getContext()
Returns the context in which the template was requested.
|
Modifier and Type | Method and Description |
---|---|
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 |
protected boolean |
TemplateVariableResolver.isUnambiguous(TemplateContext context)
Returns whether this resolver is able to resolve unambiguously.
|
protected boolean |
SimpleTemplateVariableResolver.isUnambiguous(TemplateContext context)
Returns always
true , since simple variables are normally
unambiguous. |
void |
TemplateContextType.resolve(TemplateBuffer buffer,
TemplateContext context)
Resolves the variables in
buffer within context
and edits the template buffer to reflect the resolved variables. |
protected String |
GlobalTemplateVariables.WordSelection.resolve(TemplateContext context) |
protected String |
GlobalTemplateVariables.LineSelection.resolve(TemplateContext context) |
protected String |
GlobalTemplateVariables.Date.resolve(TemplateContext context) |
protected String |
GlobalTemplateVariables.Year.resolve(TemplateContext context) |
protected String |
GlobalTemplateVariables.Time.resolve(TemplateContext context)
Returns an instance of the type resolved by the receiver available in
context . |
protected String |
GlobalTemplateVariables.User.resolve(TemplateContext context)
Returns an instance of the type resolved by the receiver available in
context . |
protected String |
TemplateVariableResolver.resolve(TemplateContext context)
Returns an instance of the type resolved by the receiver available in
context . |
protected String |
SimpleTemplateVariableResolver.resolve(TemplateContext context) |
void |
TemplateVariableResolver.resolve(TemplateVariable variable,
TemplateContext context)
Resolves
variable in context . |
void |
TemplateContextType.resolve(TemplateVariable variable,
TemplateContext context)
Resolves a single variable in a context.
|
protected String[] |
TemplateVariableResolver.resolveAll(TemplateContext context)
Returns all possible bindings available in
context . |
Constructor and Description |
---|
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.
|
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.