Package com._1c.g5.v8.dt.ql
Class QlPredefinedValueProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.ql.QlPredefinedValueProvider
-
public class QlPredefinedValueProvider extends Object
Special provider for predefined value for Ql language.
Predefined values available from operator 'VALUE'.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.xtext.scoping.IScopeProvider
scopeProvider
protected IDtProjectRuntimeVersionManager
versionSupport
-
Constructor Summary
Constructors Constructor Description QlPredefinedValueProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDescription
computePredefinedValueType(org.eclipse.emf.ecore.EObject context, String predefinedValue)
Computes type of predefined value by its nameList<String>
getAllPredefinedValues(org.eclipse.emf.ecore.EObject context)
Gets all names of allowed predefined values for actual contextList<String[]>
getAllPredefinedValuesByLang(org.eclipse.emf.ecore.EObject context, boolean isRu)
Gets all names of allowed predefined values for actual context and actual script variant
-
-
-
Field Detail
-
scopeProvider
@Inject protected org.eclipse.xtext.scoping.IScopeProvider scopeProvider
-
versionSupport
@Inject protected IDtProjectRuntimeVersionManager versionSupport
-
-
Method Detail
-
getAllPredefinedValues
public List<String> getAllPredefinedValues(org.eclipse.emf.ecore.EObject context)
Gets all names of allowed predefined values for actual context- Parameters:
context
- actual context, can't benull
- Returns:
- all names of allowed predefined values for actual context, never
null
-
getAllPredefinedValuesByLang
public List<String[]> getAllPredefinedValuesByLang(org.eclipse.emf.ecore.EObject context, boolean isRu)
Gets all names of allowed predefined values for actual context and actual script variant- Parameters:
context
- actual context, can't benull
isRu
-true
actual script varian is Russian,false
if actual script varian is English- Returns:
- all names of allowed predefined values divided by parts for actual context and actual script variant, never
null
-
computePredefinedValueType
public TypeDescription computePredefinedValueType(org.eclipse.emf.ecore.EObject context, String predefinedValue)
Computes type of predefined value by its name- Parameters:
context
- actual context, can't benull
predefinedValue
- name of the predefined value, can't benull
- Returns:
TypeDescription
with computed type or emptyTypeDescription
, if type wasn't computed. Nevernull
-
-