Class QueryTextVariable
- java.lang.Object
-
- com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.AbstractVariable
-
- com.e1c.g5.v8.dt.bsl.ui.templates.variables.QueryTextVariable
-
- All Implemented Interfaces:
IVariable
public class QueryTextVariable extends AbstractVariable
Variable that creates dialog for query wizard and query editor
-
-
Field Summary
Fields Modifier and Type Field Description static StringQUERY_EDITOR_ENValue of template variable parameter for editing query text in query editor in English languagestatic StringQUERY_EDITOR_RUValue of template variable parameter for editing query text in query editor in Russian languagestatic StringQUERY_WIZARD_ENValue of template variable parameter for editing query text in query wizard in English languagestatic StringQUERY_WIZARD_RUValue of template variable parameter for editing query text in query wizard in Russian language
-
Constructor Summary
Constructors Constructor Description QueryTextVariable(org.eclipse.jface.text.IRegion region, List<String> parameters, IV8Project v8Project)Creates new instance of this with given region
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IVariableDialogProvidergetDialogProvider()Gets special provider for open dialog for editing value after apllying variableprotected StringgetVariableText()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
-
-
-
-
Field Detail
-
QUERY_EDITOR_RU
public static final String QUERY_EDITOR_RU
Value of template variable parameter for editing query text in query editor in Russian language- See Also:
- Constant Field Values
-
QUERY_EDITOR_EN
public static final String QUERY_EDITOR_EN
Value of template variable parameter for editing query text in query editor in English language- See Also:
- Constant Field Values
-
QUERY_WIZARD_RU
public static final String QUERY_WIZARD_RU
Value of template variable parameter for editing query text in query wizard in Russian language- See Also:
- Constant Field Values
-
QUERY_WIZARD_EN
public static final String QUERY_WIZARD_EN
Value of template variable parameter for editing query text in query wizard in English language- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QueryTextVariable
public QueryTextVariable(org.eclipse.jface.text.IRegion region, List<String> parameters, IV8Project v8Project)Creates new instance of this with given region- Parameters:
region- The region of the variable in the template, cannot benullparameters- parameter values of template variable, cannot benullv8Project- actualIV8Projectfor open query editor or query wizard, cannot benull
-
-
Method Detail
-
getDialogProvider
public IVariableDialogProvider getDialogProvider()
Description copied from interface:IVariableGets special provider for open dialog for editing value after apllying variable- Specified by:
getDialogProviderin interfaceIVariable- Overrides:
getDialogProviderin classAbstractVariable- Returns:
- special provider for open dialog for editing value after apllying variable, can be
null
-
getVariableText
protected String getVariableText()
Description copied from class:AbstractVariableReturns text of the variable for the given region- Specified by:
getVariableTextin classAbstractVariable- Returns:
- The text of the variable for the given region, can be
null
-
-