Interface IExternalMetaTypesProvider


  • public interface IExternalMetaTypesProvider
    Special provider for add meta Types to Built-In Module language. Meta type - is additional information about real V8 Runtime TypeItem, this information can only use in documentation comment in Built-In Module language. Meta type provides information about methods and properties of real V8 Runtime TypeItem. This information will be used only in design time for content-assits, validation in Built-in language editor. Provider should be registered by extension point "com._1c.g5.v8.dt.bsl.externalMetaTypesExtension".
    • Method Detail

      • getExternalTypes

        Collection<Type> getExternalTypes​(org.eclipse.emf.ecore.resource.Resource context)
        Gets external meta types, which will be available only in Built-In Module language. Meta type - is additional information about real V8 Runtime TypeItem, this information can only be used in documentation comment in Built-In Module language. Meta type provides information about methods and properties of real V8 Runtime TypeItem. This information will be used only in design time for content-assist, validation in Built-in language editor. Each returning Type can have reference to usual types (not external meta types). No matter that returning type has or not containing Resource. Important:
        • This method in large configuration will be called very often.
        • Names (Russian and English) of the object should be unique.
        Parameters:
        context - special context Resource for getting actual Version (see IRuntimeVersionSupport.getRuntimeVersion(Resource)), and resolving usual types (see EcoreUtil.resolve(org.eclipse.emf.ecore.EObject, Resource)), cannot be null
        Returns:
        external types, which will be available only in Built-In Module language, never null