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
Variable that creates dialog for query wizard and query editor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value of template variable parameter for editing query text in query editor in English languagestatic final String
Value of template variable parameter for editing query text in query editor in Russian languagestatic final String
Value of template variable parameter for editing query text in query wizard in English languagestatic final String
Value of template variable parameter for editing query text in query wizard in Russian language -
Constructor Summary
ConstructorsConstructorDescriptionQueryTextVariable
(org.eclipse.jface.text.IRegion region, List<String> parameters, IV8Project v8Project) Creates new instance of this with given region -
Method Summary
Modifier and TypeMethodDescriptionGets special provider for open dialog for editing value after apllying variableprotected String
Returns text of the variable for the given regionMethods inherited from class com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.AbstractVariable
apply, getProposalProvider, getRegion
-
Field Details
-
QUERY_EDITOR_RU
Value of template variable parameter for editing query text in query editor in Russian language- See Also:
-
QUERY_EDITOR_EN
Value of template variable parameter for editing query text in query editor in English language- See Also:
-
QUERY_WIZARD_RU
Value of template variable parameter for editing query text in query wizard in Russian language- See Also:
-
QUERY_WIZARD_EN
Value of template variable parameter for editing query text in query wizard in English language- See Also:
-
-
Constructor Details
-
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 Details
-
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
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
-