Class BmAwareBslGlobalScopeProvider

    • Constructor Detail

      • BmAwareBslGlobalScopeProvider

        public BmAwareBslGlobalScopeProvider()
    • Method Detail

      • getScope

        public org.eclipse.xtext.scoping.IScope getScope​(org.eclipse.core.resources.IProject project,
                                                         org.eclipse.emf.ecore.EReference reference,
                                                         com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter)
        Description copied from interface: IProjectGlobalScopeProvider
        Returns a global scope for the given IProject context.
        Specified by:
        getScope in interface IProjectGlobalScopeProvider
        Parameters:
        project - the IProject from which the global scope is looked at, cannot be null
        reference - the reference for which to construct a global scope, cannot be null
        filter - filter a filter used to filter down the elements contained in each scope. Scopes will only contain elements for which the filter returned true, can be null
        Returns:
        IScope representing the inner most IScope for the passed project and reference. The result cannot be null, return IScope.NULLSCOPE instead.
      • getDefaultGlobalScope

        protected org.eclipse.xtext.scoping.IScope getDefaultGlobalScope​(org.eclipse.xtext.scoping.IScope parent,
                                                                         org.eclipse.emf.ecore.resource.Resource resource,
                                                                         org.eclipse.emf.ecore.EReference reference,
                                                                         com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter)
        Description copied from class: PlatformAwareGlobalScopeProvider
        Returns a default global scope for the given parent scope and the given context.
        Overrides:
        getDefaultGlobalScope in class PlatformAwareGlobalScopeProvider
        Parameters:
        parent - the parent scope
        resource - the resource from which the global scope is looked at.
        reference - the reference for which to construct a global scope.
        filter - a filter used to filter down the elements contained in each scope. Scopes will only contain elements for which the filter returned true.
        Returns:
        the resulting default global scope. Can't be null.
      • createContainerScope

        protected org.eclipse.xtext.scoping.IScope createContainerScope​(org.eclipse.xtext.scoping.IScope parent,
                                                                        org.eclipse.xtext.resource.IContainer container,
                                                                        com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter,
                                                                        org.eclipse.emf.ecore.EClass type,
                                                                        boolean ignoreCase)
        Overrides:
        createContainerScope in class PlatformAwareGlobalScopeProvider