Class AbstractTypeProvider

    • Constructor Detail

      • AbstractTypeProvider

        public AbstractTypeProvider()
    • Method Detail

      • 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
      • getContextProject

        public abstract org.eclipse.core.resources.IProject getContextProject​(org.eclipse.emf.ecore.EObject context)
        Gets actual object by context EObject
        Parameters:
        context - context EObject, cannot be null
        Returns:
        context IProject or null if there is no IProject
      • getVersion

        protected Version getVersion​(org.eclipse.emf.ecore.EObject context)
        Gets actual project version by context object
        Parameters:
        context - context object for computing TypeDescriptionInfo, can't be null
        Returns:
        actual project version by context object, never null
      • getFilters

        protected com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> getFilters()
        Gets IScope filter
        Returns:
        IScope filter, may be null if there is no filter
      • getAllTypesScope

        protected org.eclipse.xtext.scoping.IScope getAllTypesScope​(org.eclipse.emf.ecore.EObject context,
                                                                    org.eclipse.xtext.scoping.IScope cachedScope)
        Gets actual type IScope for creating TypeInfo in TypeDescriptionInfoWithTypeInfo
        Parameters:
        context - context object for computing TypeDescriptionInfo, can't be null
        cachedScope - cached scope, may be null if there is no ot
        Returns:
        actual type IScope for creating TypeInfo in TypeDescriptionInfoWithTypeInfo, never null
      • getAllTypesScope

        protected org.eclipse.xtext.scoping.IScope getAllTypesScope​(org.eclipse.emf.ecore.EObject context,
                                                                    org.eclipse.emf.ecore.EObject parentContext,
                                                                    org.eclipse.xtext.scoping.IScope cachedScope)
        Gets actual type IScope for creating TypeInfo in TypeDescriptionInfoWithTypeInfo
        Parameters:
        context - context object for computing TypeDescriptionInfo, can't be null
        parentContext - parent context object for computing TypeDescriptionInfo, can be null
        cachedScope - cached scope, may be null if there is no ot
        Returns:
        actual type IScope for creating TypeInfo in TypeDescriptionInfoWithTypeInfo, never null