Class SelectionVariable
- java.lang.Object
-
- com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.AbstractVariable
-
- com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.SelectionVariable
-
- All Implemented Interfaces:
IVariable
public class SelectionVariable extends AbstractVariable
Variable that replaces region of the occurrence with the selected text
-
-
Constructor Summary
Constructors Constructor Description SelectionVariable(String text, org.eclipse.jface.text.IRegion region)
Creates new instance of this with given parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getVariableText()
Returns text of the variable for the given region-
Methods inherited from class com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.AbstractVariable
apply, getDialogProvider, getProposalProvider, getRegion
-
-
-
-
Constructor Detail
-
SelectionVariable
public SelectionVariable(String text, org.eclipse.jface.text.IRegion region)
Creates new instance of this with given parameters- Parameters:
text
- The text that is selected, cannot benull
region
- The region of the occurrence of this variable, cannot benull
-
-
Method Detail
-
getVariableText
protected String getVariableText()
Description copied from class:AbstractVariable
Returns text of the variable for the given region- Specified by:
getVariableText
in classAbstractVariable
- Returns:
- The text of the variable for the given region, can be
null
-
-