Class InsertMetadataObjectNameVariable
java.lang.Object
com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.AbstractVariable
com.e1c.g5.v8.dt.bsl.ui.templates.variables.InsertMetadataObjectNameVariable
- All Implemented Interfaces:
IVariable
Template variable for inserting metadata object name
-
Field Summary
FieldsModifier and TypeFieldDescriptionMap for gettingEReference
to metadata object by its nameMap for gettingEReference
to metadata object by its English nameMap for gettingEReference
to metadata object by its Russian nameMap for gettingEClass
of metadata object by its full qualified nameMap for gettingEClass
of metadata object by its English full qualified nameMap for gettingEClass
of metadata object by its Russian full qualified name -
Constructor Summary
ConstructorsConstructorDescriptionInsertMetadataObjectNameVariable
(org.eclipse.jface.text.IRegion region, List<String> metadataObjectTypes, IV8Project v8Project, org.eclipse.xtext.scoping.IGlobalScopeProvider globalScopeProvider, org.eclipse.emf.ecore.resource.Resource contextResource, boolean fullName) 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
-
REFERENCES_BY_NAME_RU
Map for gettingEReference
to metadata object by its Russian name -
REFERENCES_BY_NAME_EN
Map for gettingEReference
to metadata object by its English name -
REFERENCES_BY_NAME
Map for gettingEReference
to metadata object by its name -
SUB_OBJECT_ECLASS_BY_NAME_RU
Map for gettingEClass
of metadata object by its Russian full qualified name -
SUB_OBJECT_ECLASS_BY_NAME_EN
Map for gettingEClass
of metadata object by its English full qualified name -
SUB_OBJECT_ECLASS_BY_NAME
Map for gettingEClass
of metadata object by its full qualified name
-
-
Constructor Details
-
InsertMetadataObjectNameVariable
public InsertMetadataObjectNameVariable(org.eclipse.jface.text.IRegion region, List<String> metadataObjectTypes, IV8Project v8Project, org.eclipse.xtext.scoping.IGlobalScopeProvider globalScopeProvider, org.eclipse.emf.ecore.resource.Resource contextResource, boolean fullName) Creates new instance of this with given region- Parameters:
region
- The region of the variable in the template, cannot benull
metadataObjectTypes
- types of metadata object for choosing one for getting its name, cannot benull
v8Project
- actualIV8Project
for getting metadata objects, cannot benull
globalScopeProvider
- actualIGlobalScopeProvider
for getting 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
fullName
-true
if variable should insert full name of metadata object,false
if should insert only metadata object name
-
-
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
-