Class PlatformScopeProvider

    • Field Detail

      • caseInsensitivityHelper

        @Inject
        protected org.eclipse.xtext.scoping.ICaseInsensitivityHelper caseInsensitivityHelper
    • Constructor Detail

      • PlatformScopeProvider

        public PlatformScopeProvider()
      • PlatformScopeProvider

        public PlatformScopeProvider​(IEObjectProvider.Registry registry,
                                     org.eclipse.xtext.scoping.ICaseInsensitivityHelper caseICaseInsensitivityHelper)
    • Method Detail

      • getScope

        public org.eclipse.xtext.scoping.IScope getScope​(org.eclipse.emf.ecore.EReference reference,
                                                         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.
        Specified by:
        getScope in interface IPlatformScopeProvider
        Parameters:
        reference - the reference for which to construct a platform scope. Can't be null.
        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.
      • isIgnoreCase

        protected boolean isIgnoreCase​(org.eclipse.emf.ecore.EReference eReference)
        Checks ignoreCase by EReference
        Parameters:
        eReference - EReference
        Returns:
        true if case should be ignored, false otherwise
      • createEClassFilter

        protected static AndPredicate<org.eclipse.xtext.resource.IEObjectDescription> createEClassFilter​(org.eclipse.emf.ecore.EClass eClass,
                                                                                                         com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter)
        Creates special filter by EClass
        Parameters:
        eClass - actual EClass, can't be null
        filter - current filter, can be null
        Returns:
        created filter, can't be null