public interface IGlobalScopeProvider
Modifier and Type | Method and Description |
---|---|
IScope |
getScope(org.eclipse.emf.ecore.resource.Resource context,
org.eclipse.emf.ecore.EReference reference,
com.google.common.base.Predicate<IEObjectDescription> filter)
Returns a global scope for the given context.
|
IScope getScope(org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EReference reference, com.google.common.base.Predicate<IEObjectDescription> filter)
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.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
.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.