Class MetadataObjectPredefinedItemVariable
- java.lang.Object
-
- com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.AbstractVariable
-
- com.e1c.g5.v8.dt.bsl.ui.templates.variables.MetadataObjectPredefinedItemVariable
-
- All Implemented Interfaces:
IVariable
public class MetadataObjectPredefinedItemVariable extends AbstractVariable
Template variable for calling of metadata object predefined item as Build-in language code
-
-
Field Summary
Fields Modifier and Type Field Description static Map<String,org.eclipse.emf.ecore.EReference>
REFERENCES_BY_NAME
Map for gettingEReference
to predefined item of metadata object by its namestatic Map<String,org.eclipse.emf.ecore.EReference>
REFERENCES_BY_NAME_EN
Map for gettingEReference
to predefined item of metadata object by its English namestatic Map<String,org.eclipse.emf.ecore.EReference>
REFERENCES_BY_NAME_RU
Map for gettingEReference
to predefined item of metadata object by its Russian name
-
Constructor Summary
Constructors Constructor Description MetadataObjectPredefinedItemVariable(org.eclipse.jface.text.IRegion region, List<String> predefinedItemTypes, ScriptVariant scriptVariant, org.eclipse.xtext.scoping.IGlobalScopeProvider globalScopeProvider, org.eclipse.emf.ecore.resource.Resource contextResource)
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
-
REFERENCES_BY_NAME_RU
public static final Map<String,org.eclipse.emf.ecore.EReference> REFERENCES_BY_NAME_RU
Map for gettingEReference
to predefined item of metadata object by its Russian name
-
REFERENCES_BY_NAME_EN
public static final Map<String,org.eclipse.emf.ecore.EReference> REFERENCES_BY_NAME_EN
Map for gettingEReference
to predefined item of metadata object by its English name
-
-
Constructor Detail
-
MetadataObjectPredefinedItemVariable
public MetadataObjectPredefinedItemVariable(org.eclipse.jface.text.IRegion region, List<String> predefinedItemTypes, ScriptVariant scriptVariant, org.eclipse.xtext.scoping.IGlobalScopeProvider globalScopeProvider, org.eclipse.emf.ecore.resource.Resource contextResource)
Creates new instance of this with given region- Parameters:
region
- The region of the variable in the template, cannot benull
predefinedItemTypes
- types of predefined item metadata object for choosing one for getting its name, cannot benull
globalScopeProvider
- actualIGlobalScopeProvider
for getting predefined item metadata object, cannot benull
contextResource
-Resource
as context for using inIGlobalScopeProvider.getScope(Resource, org.eclipse.emf.ecore.EReference, com.google.common.base.Predicate)
, 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
-
-