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 String
QUERY_EDITOR_EN
Value of template variable parameter for editing query text in query editor in English languagestatic String
QUERY_EDITOR_RU
Value of template variable parameter for editing query text in query editor in Russian languagestatic String
QUERY_WIZARD_EN
Value of template variable parameter for editing query text in query wizard in English languagestatic String
QUERY_WIZARD_RU
Value 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 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
-
-
-
-
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 benull
parameters
- parameter values of template variable, cannot benull
v8Project
- actualIV8Project
for open query editor or query wizard, 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
-
-