Interface IGlobalScopeProvider

All Known Implementing Classes:
AbstractGlobalScopeProvider, AbstractTypeScopeProvider, ClasspathBasedTypeScopeProvider, DefaultGlobalScopeProvider, ImportUriGlobalScopeProvider, JdtBasedSimpleTypeScopeProvider, JvmGlobalScopeProvider, ResourceSetGlobalScopeProvider, TypesAwareDefaultGlobalScopeProvider, Xtend2GlobalScopeProvider

public interface IGlobalScopeProvider

A marker interface used to identify IScopeProvider implementations providing scopes for the world, that is things which are not local (i.e. within a resource). Common scope providers (local ones) use them to delegate lookup for any elements, which are not locally available.

Sven Efftinge - Initial contribution and API

Method Summary
 IScope getScope(org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EReference reference,<IEObjectDescription> filter)
          Returns a global scope for the given context.

Method Detail


IScope getScope(org.eclipse.emf.ecore.resource.Resource context,
                org.eclipse.emf.ecore.EReference reference,
      <IEObjectDescription> filter)
Returns a global scope for the given context. The scope provides access to the EObjectDescription visible from the given Resource according to the definition of the global scope hierarchy (which is usually defined by IContainer.Manager).

context - the resource from which the global scope is looked at.
the - reference for which to construct a global scope.
a - filter used to filter down the elements contained in each scope. Scopes will only contain elements for which the filter returned true.
IScope representing the inner most IScope for the passed context and reference. Note for implementors: The result may not be null. Return IScope.NULLSCOPE instead.