public class SimpleLocalScopeProvider extends AbstractGlobalScopeDelegatingScopeProvider
Resource and
delegates to a global scope.| Constructor and Description |
|---|
SimpleLocalScopeProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected IScope |
createScope(IScope parent,
ISelectable resourceContent,
org.eclipse.emf.ecore.EClass type,
boolean ignoreCase) |
protected ISelectable |
getAllDescriptions(org.eclipse.emf.ecore.resource.Resource resource) |
protected IQualifiedNameProvider |
getNameProvider() |
IScope |
getScope(org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EReference reference)
Returns a scope for the given context.
|
void |
setCache(IResourceScopeCache cache) |
void |
setNameProvider(IQualifiedNameProvider nameProvider) |
getGlobalScope, getGlobalScope, isIgnoreCase, setWrapper, wrappublic void setCache(IResourceScopeCache cache)
public void setNameProvider(IQualifiedNameProvider nameProvider)
protected IQualifiedNameProvider getNameProvider()
public IScope getScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
IScopeProvidercontext - the element from which an element shall be referenced. It doesn't need to be the element
containing the reference, it is just used to find the most inner scope for given EReference.reference - the reference for which to get the scope.IScope representing the innermost IScope for the
passed context and reference. Note for implementors: The result may not be null.
Return IScope.NULLSCOPE instead.protected IScope createScope(IScope parent, ISelectable resourceContent, org.eclipse.emf.ecore.EClass type, boolean ignoreCase)
protected ISelectable getAllDescriptions(org.eclipse.emf.ecore.resource.Resource resource)
Copyright © 2015. All Rights Reserved.