public static class GlobalTemplateVariables.WordSelection extends SimpleTemplateVariableResolver
Modifier and Type | Field and Description |
---|---|
static String |
NAME
Name of the word selection variable, value= "word_selection"
|
Constructor and Description |
---|
GlobalTemplateVariables.WordSelection()
Creates a new word selection variable
|
Modifier and Type | Method and Description |
---|---|
protected String |
resolve(TemplateContext context)
Returns an instance of the type resolved by the receiver available in
context . |
isUnambiguous, setEvaluationString
getDescription, getType, resolve, resolveAll, setDescription, setType
public static final String NAME
public GlobalTemplateVariables.WordSelection()
protected String resolve(TemplateContext context)
TemplateVariableResolver
context
.
To resolve means to provide a binding to a concrete text object (a
String
) in the given context.
The default implementation looks up the type in the context.
resolve
in class SimpleTemplateVariableResolver
context
- the context in which to resolve the typenull
if it cannot be determined
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.