Class ProposalsVariable
- java.lang.Object
-
- com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.AbstractVariable
-
- com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.ProposalsVariable
-
- All Implemented Interfaces:
IVariable
public class ProposalsVariable extends AbstractVariable
Variable that provides several choices for user
-
-
Constructor Summary
Constructors Constructor Description ProposalsVariable(org.eclipse.jface.text.IRegion region, String[] proposals)
Creates new proposal variable in given region with given proposals
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IVariableDialogProvider
getDialogProvider()
Gets special provider for open dialog for editing value after apllying variableprotected 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, getProposalProvider, getRegion
-
-
-
-
Constructor Detail
-
ProposalsVariable
public ProposalsVariable(org.eclipse.jface.text.IRegion region, String[] proposals)
Creates new proposal variable in given region with given proposals- Parameters:
region
- The region of the variable, cannot benull
proposals
- The proposals to choose from, cannot benull
-
-
Method Detail
-
getDialogProvider
public IVariableDialogProvider getDialogProvider()
Description copied from interface:IVariable
Gets special provider for open dialog for editing value after apllying variable- Specified by:
getDialogProvider
in interfaceIVariable
- Overrides:
getDialogProvider
in classAbstractVariable
- Returns:
- special provider for open dialog for editing value after apllying variable, can be
null
-
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
-
-