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
public class InsertMetadataObjectNameVariable extends AbstractVariable
Template variable for inserting metadata object name
-
-
Field Summary
Fields Modifier and Type Field Description static Map<String,org.eclipse.emf.ecore.EReference>REFERENCES_BY_NAMEMap for gettingEReferenceto metadata object by its namestatic Map<String,org.eclipse.emf.ecore.EReference>REFERENCES_BY_NAME_ENMap for gettingEReferenceto metadata object by its English namestatic Map<String,org.eclipse.emf.ecore.EReference>REFERENCES_BY_NAME_RUMap for gettingEReferenceto metadata object by its Russian namestatic Map<String,org.eclipse.emf.ecore.EClass>SUB_OBJECT_ECLASS_BY_NAMEMap for gettingEClassof metadata object by its full qualified namestatic Map<String,org.eclipse.emf.ecore.EClass>SUB_OBJECT_ECLASS_BY_NAME_ENMap for gettingEClassof metadata object by its English full qualified namestatic Map<String,org.eclipse.emf.ecore.EClass>SUB_OBJECT_ECLASS_BY_NAME_RUMap for gettingEClassof metadata object by its Russian full qualified name
-
Constructor Summary
Constructors Constructor Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IVariableDialogProvidergetDialogProvider()Gets special provider for open dialog for editing value after apllying variableprotected StringgetVariableText()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 gettingEReferenceto 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 gettingEReferenceto metadata object by its English name
-
REFERENCES_BY_NAME
public static final Map<String,org.eclipse.emf.ecore.EReference> REFERENCES_BY_NAME
Map for gettingEReferenceto metadata object by its name
-
SUB_OBJECT_ECLASS_BY_NAME_RU
public static final Map<String,org.eclipse.emf.ecore.EClass> SUB_OBJECT_ECLASS_BY_NAME_RU
Map for gettingEClassof metadata object by its Russian full qualified name
-
SUB_OBJECT_ECLASS_BY_NAME_EN
public static final Map<String,org.eclipse.emf.ecore.EClass> SUB_OBJECT_ECLASS_BY_NAME_EN
Map for gettingEClassof metadata object by its English full qualified name
-
-
Constructor Detail
-
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 benullmetadataObjectTypes- types of metadata object for choosing one for getting its name, cannot benullv8Project- actualIV8Projectfor getting metadata objects, cannot benullglobalScopeProvider- actualIGlobalScopeProviderfor getting metadata object, cannot benullcontextResource-Resourceas context for using inIGlobalScopeProvider.getScope(Resource, org.eclipse.emf.ecore.EReference, com.google.common.base.Predicate), cannot benullfullName-trueif variable should insert full name of metadata object,falseif should insert only metadata object name
-
-
Method Detail
-
getDialogProvider
public IVariableDialogProvider getDialogProvider()
Description copied from interface:IVariableGets special provider for open dialog for editing value after apllying variable- Specified by:
getDialogProviderin interfaceIVariable- Overrides:
getDialogProviderin classAbstractVariable- Returns:
- special provider for open dialog for editing value after apllying variable, can be
null
-
getVariableText
protected String getVariableText()
Description copied from class:AbstractVariableReturns text of the variable for the given region- Specified by:
getVariableTextin classAbstractVariable- Returns:
- The text of the variable for the given region, can be
null
-
-