Class TypeProviderService

    • Method Detail

      • addTypeProvider

        public void addTypeProvider​(ITypeProvider typeProvider)
        Method to programmatically register type providers
        Parameters:
        typeProvider - to push in register
      • getTypeDescriptionInfo

        public TypeDescriptionInfoWithCategories getTypeDescriptionInfo​(org.eclipse.emf.ecore.EObject context,
                                                                        org.eclipse.emf.ecore.EReference reference)
        Method returns actual TypeDescriptionInfoWithCategories to pair eObject-context and reference from registered type providers.
        Parameters:
        context - the eObject context, cannot be null
        reference - the type feature, cannot be null
        Returns:
        rules in TypeDescriptionInfo, cannot be null
      • getTypeDescriptionInfo

        public TypeDescriptionInfoWithCategories getTypeDescriptionInfo​(org.eclipse.emf.ecore.EObject context,
                                                                        org.eclipse.emf.ecore.EReference reference,
                                                                        org.eclipse.xtext.scoping.IScope cachedScope)
        Description copied from interface: ITypeProvider
        Method returns actual TypeDescriptionInfoWithCategories to pair eObject-context and reference from registered type providers
        Specified by:
        getTypeDescriptionInfo in interface ITypeProvider
        Parameters:
        context - eObject context, cannot be null
        reference - the type feature, cannot be null
        cachedScope - the cached scope, can be null if cache is not used
        Returns:
        rules in TypeDescriptionInfo, cannot be null
      • getTypeDescriptionInfoWithTypeInfo

        public TypeDescriptionInfoWithTypeInfo getTypeDescriptionInfoWithTypeInfo​(org.eclipse.emf.ecore.EObject context,
                                                                                  org.eclipse.emf.ecore.EReference reference,
                                                                                  org.eclipse.xtext.scoping.IScope cachedScope)
        Description copied from interface: ITypeProvider
        Method returns actual TypeDescriptionInfoWithTypeInfo to pair eObject-context and reference from registered type providers
        Specified by:
        getTypeDescriptionInfoWithTypeInfo in interface ITypeProvider
        Parameters:
        context - eObject context, cannot be null
        reference - the type feature, cannot be null
        cachedScope - the cached scope, can be null if cache is not used
        Returns:
        rules in TypeDescriptionInfo, cannot be null
      • getTypeDescriptionInfoWithTypeInfo

        public TypeDescriptionInfoWithTypeInfo getTypeDescriptionInfoWithTypeInfo​(org.eclipse.emf.ecore.EObject context,
                                                                                  org.eclipse.emf.ecore.EObject parentContext,
                                                                                  org.eclipse.emf.ecore.EReference reference,
                                                                                  org.eclipse.xtext.scoping.IScope cachedScope)
        Description copied from interface: ITypeProvider
        Method returns actual TypeDescriptionInfoWithTypeInfo to pair eObject-context and reference from registered type providers
        Specified by:
        getTypeDescriptionInfoWithTypeInfo in interface ITypeProvider
        Parameters:
        context - eObject context, cannot be null
        reference - the type feature, cannot be null
        cachedScope - the cached scope, can be null if cache is not used
        Returns:
        rules in TypeDescriptionInfo, cannot be null