Class FormPropertyInfoExtension


  • public class FormPropertyInfoExtension
    extends Object
    Extension class for model.

    Implement PropertyInfoSource#getPropertyInfos() method

    • Constructor Detail

      • FormPropertyInfoExtension

        public FormPropertyInfoExtension()
    • Method Detail

      • getPropertyInfoBySource

        public static List<PropertyInfo> getPropertyInfoBySource​(org.eclipse.emf.ecore.EObject propertyInfoSource)
        Gets PropertyInfo-s to source using PropertyInfo providers
        Parameters:
        propertyInfoSource - Form, can't be null
        Returns:
        List of PropertyInfo
      • getPropertyInfoDataPath

        public static <T extends org.eclipse.emf.ecore.EObject> T getPropertyInfoDataPath​(PropertyInfo propertyInfoSource,
                                                                                          ScriptVariant scriptVariant)
        Get AbstractDataPath for property info source element
        Parameters:
        propertyInfoSource - the property info source
        scriptVariant - the current configuration script variant
        Returns:
        the instance of AbstractDataPath as EObject, never null
      • getPropertyInfoDataPath

        public static <T extends org.eclipse.emf.ecore.EObject> T getPropertyInfoDataPath​(PropertyInfo propertyInfoSource)
        Get AbstractDataPath for property info source element
        Parameters:
        propertyInfoSource - the property info source
        Returns:
        the instance of AbstractDataPath as EObject, never null
      • getPropertyInfoPresentation

        public static String getPropertyInfoPresentation​(Form form,
                                                         String languageCode,
                                                         ScriptVariant scriptVariant)
        Gets string ui presentation for form source
        Parameters:
        form - the presentation for, can't be null
        languageCode - configuration current editing language code, can't be null
        scriptVariant - configuration current script variant, can't be null
        Returns:
        string ui presentation, never null
      • getPropertyInfoPresentation

        public static String getPropertyInfoPresentation​(PropertyInfo propertyInfo,
                                                         String languageCode,
                                                         ScriptVariant scriptVariant)
        Gets string ui presentation for property info source
        Parameters:
        propertyInfo - the presentation for
        languageCode - configuration current editing language code
        scriptVariant - configuration current script variant
        Returns:
        string ui presentation