Class PlatformScopeProvider

    • Field Detail

      • caseInsensitivityHelper

        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,
                                               <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
        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
        the resulting platform scope. Can't be null.
      • isIgnoreCase

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

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