public class DelegatingScopeProvider extends AbstractScopeProvider implements IDelegatingScopeProvider
AbstractDeclarativeScopeProvider
while still delegating to another provider
.
Meant to be used as the base class for custom scope providers.Constructor and Description |
---|
DelegatingScopeProvider() |
Modifier and Type | Method and Description |
---|---|
protected IScope |
delegateGetScope(org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EReference reference) |
IScopeProvider |
getDelegate()
Provides access to the delegate.
|
IScope |
getScope(org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EReference reference)
Returns a scope for the given context.
|
void |
setDelegate(IScopeProvider delegate) |
public IScope getScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
IScopeProvider
getScope
in interface IScopeProvider
context
- 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 inner most IScope
for the
passed context and reference. Note for implementors: The result may not be null
.
Return IScope.NULLSCOPE
instead.protected IScope delegateGetScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
public void setDelegate(IScopeProvider delegate)
public IScopeProvider getDelegate()
IDelegatingScopeProvider
getDelegate
in interface IDelegatingScopeProvider
null
.