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 Details

    • REFERENCES_BY_NAME_RU

      public static final Map<String,org.eclipse.emf.ecore.EReference> REFERENCES_BY_NAME_RU
      Map for getting EReference to 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 getting EReference to metadata object by its English name
    • REFERENCES_BY_NAME

      public static final Map<String,org.eclipse.emf.ecore.EReference> REFERENCES_BY_NAME
      Map for getting EReference to 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 getting EClass of 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 getting EClass of metadata object by its English full qualified name
    • SUB_OBJECT_ECLASS_BY_NAME

      public static final Map<String,org.eclipse.emf.ecore.EClass> SUB_OBJECT_ECLASS_BY_NAME
      Map for getting EClass 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 be null
      metadataObjectTypes - types of metadata object for choosing one for getting its name, cannot be null
      v8Project - actual IV8Project for getting metadata objects, cannot be null
      globalScopeProvider - actual IGlobalScopeProvider for getting metadata object, cannot be null
      contextResource - Resource as context for using in IGlobalScopeProvider.getScope(Resource, org.eclipse.emf.ecore.EReference, com.google.common.base.Predicate), cannot be null
      fullName - true if variable should insert full name of metadata object, false if should insert only metadata object name
  • Method Details