Class CachedPlatformScopeProvider

    • Constructor Detail

      • CachedPlatformScopeProvider

        public CachedPlatformScopeProvider()
    • Method Detail

      • getScope

        public org.eclipse.xtext.scoping.IScope getScope​(org.eclipse.emf.ecore.EClass type,
                                                         boolean ignoreCase,
                                                         com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter,
                                                         Version version)
        Description copied from interface: IPlatformScopeProvider
        Returns a corresponding version of platform scope for the given context.
        Parameters:
        type - type of elements collecting into the resulting scope.
        ignoreCase - if true the resulting scope ia case-insensitive.
        filter - a filter used to filter elements in the platform scope. May be null.
        version - runtime version of platform scope, can't be null
        Returns:
        the resulting platform scope. Can't be null.
      • getScope

        public org.eclipse.xtext.scoping.IScope getScope​(org.eclipse.emf.ecore.EClass type,
                                                         boolean ignoreCase,
                                                         Version version)
        Returns a corresponding version of platform scope for the given context.
        Parameters:
        type - type of elements collecting into the resulting scope.
        ignoreCase - if true the resulting scope ia case-insensitive
        version - runtime version of platform scope, can't be null
        Returns:
        the resulting platform scope. Can't be null.
      • getScopeByProvider

        protected org.eclipse.xtext.scoping.IScope getScopeByProvider​(org.eclipse.emf.ecore.EClass type,
                                                                      IEObjectProvider provider,
                                                                      boolean ignoreCase,
                                                                      Version version)
        Gets platform scope by IEObjectProvider
        Parameters:
        type - type of elements collecting into the resulting scope.
        provider - corresponding IEObjectProvider, can't be null
        ignoreCase - if true the resulting scope ia case-insensitive.
        filter - a filter used to filter elements in the platform scope. May be null.
        Returns:
        the resulting platform scope. Can't be null.