See: Description
Class | Description |
---|---|
ContextTypeRegistry |
A registry for context types.
|
DocumentTemplateContext |
Instances of this class describe the context of a template as a region of
a document.
|
GlobalTemplateVariables |
Global variables which are available in any context.
|
GlobalTemplateVariables.Cursor |
The cursor variable determines the cursor placement after template edition.
|
GlobalTemplateVariables.Date |
The date variable evaluates to the current date.
|
GlobalTemplateVariables.Dollar |
The dollar variable inserts an escaped dollar symbol.
|
GlobalTemplateVariables.LineSelection |
The line selection variable determines templates that work on selected
lines.
|
GlobalTemplateVariables.Time |
The time variable evaluates to the current time.
|
GlobalTemplateVariables.User |
The user variable evaluates to the current user.
|
GlobalTemplateVariables.WordSelection |
The word selection variable determines templates that work on a full
lines selection.
|
GlobalTemplateVariables.Year |
The year variable evaluates to the current year.
|
SimpleTemplateVariableResolver |
A simple template variable resolver, which always evaluates to a defined string.
|
Template |
A template consisting of a name and a pattern.
|
TemplateBuffer |
A template buffer is a container for a string and variables.
|
TemplateCompletionProcessor |
A completion processor that computes template proposals.
|
TemplateContext |
Provides the context for a
Template being resolved. |
TemplateContextType |
A context type defines a context within which templates are resolved.
|
TemplateProposal |
A template completion proposal.
|
TemplateTranslator |
The template translator translates a string into a template buffer.
|
TemplateVariable |
A
TemplateVariable represents a set of positions into a
TemplateBuffer with identical content each. |
TemplateVariableResolver |
A
TemplateVariableResolver resolves TemplateVariables
of a certain type inside a TemplateContext . |
TemplateVariableType |
Value object that represents the type of a template variable.
|
Exception | Description |
---|---|
TemplateException |
Thrown when a template cannot be validated.
|
org.eclipse.jface.text.templates
org.eclipse.ui.workbench.texteditor.templates
org.eclipse.ui.editors.templates
if (${name} instanceof ${type}) { ${type} ${new_name} = (${type})${name}; ${cursor} }In this template, the variables (name,type, ...) are resolved when inserted into java source and changing one variable instance will also change the other. When leaving linked mode, the caret is placed at the cursor variable.
Copyright (c) 2000, 2013 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.