org.eclipse.xtext.scoping.impl
Class AbstractGlobalScopeDelegatingScopeProvider

java.lang.Object
  extended by org.eclipse.xtext.scoping.impl.AbstractScopeProvider
      extended by org.eclipse.xtext.scoping.impl.AbstractGlobalScopeDelegatingScopeProvider
All Implemented Interfaces:
IScopeProvider
Direct Known Subclasses:
ImportedNamespaceAwareLocalScopeProvider, SimpleLocalScopeProvider

public abstract class AbstractGlobalScopeDelegatingScopeProvider
extends AbstractScopeProvider

A local scope provider that can delegate to a global scope.

Author:
Sven Efftinge - Initial contribution and API

Constructor Summary
protected AbstractGlobalScopeDelegatingScopeProvider()
           
protected AbstractGlobalScopeDelegatingScopeProvider(IGlobalScopeProvider globalScopeProvider, ICaseInsensitivityHelper caseInsensitivityHelper)
           
 
Method Summary
protected  IScope getGlobalScope(org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EReference reference)
           
protected  IScope getGlobalScope(org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EReference reference, com.google.common.base.Predicate<IEObjectDescription> filter)
           
protected  boolean isIgnoreCase(org.eclipse.emf.ecore.EReference reference)
           
 void setWrapper(IScopeWrapper wrapper)
           
protected  IScope wrap(IScope scope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.xtext.scoping.IScopeProvider
getScope
 

Constructor Detail

AbstractGlobalScopeDelegatingScopeProvider

protected AbstractGlobalScopeDelegatingScopeProvider()

AbstractGlobalScopeDelegatingScopeProvider

protected AbstractGlobalScopeDelegatingScopeProvider(IGlobalScopeProvider globalScopeProvider,
                                                     ICaseInsensitivityHelper caseInsensitivityHelper)
Method Detail

getGlobalScope

protected IScope getGlobalScope(org.eclipse.emf.ecore.resource.Resource context,
                                org.eclipse.emf.ecore.EReference reference)

getGlobalScope

protected IScope getGlobalScope(org.eclipse.emf.ecore.resource.Resource context,
                                org.eclipse.emf.ecore.EReference reference,
                                com.google.common.base.Predicate<IEObjectDescription> filter)

setWrapper

public void setWrapper(IScopeWrapper wrapper)

wrap

protected IScope wrap(IScope scope)

isIgnoreCase

protected boolean isIgnoreCase(org.eclipse.emf.ecore.EReference reference)