Class 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 Detail

      • REFERENCES_BY_NAME_RU

        public static final Map<String,​org.eclipse.emf.ecore.EReference> REFERENCES_BY_NAME_RU
        Map for getting EReference 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 getting EReference to predefined item of 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 predefined item of metadata object by its 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 be null
        predefinedItemTypes - types of predefined item metadata object for choosing one for getting its name, cannot be null
        globalScopeProvider - actual IGlobalScopeProvider for getting predefined item 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