public class XbaseBatchScopeProvider extends java.lang.Object implements IBatchScopeProvider, IDelegatingScopeProvider
Constructor and Description |
---|
XbaseBatchScopeProvider() |
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.
|
protected FeatureScopes |
getFeatureScopes() |
IScope |
getScope(org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EReference reference)
Returns a scope for the given context.
|
boolean |
isBatchScopeable(org.eclipse.emf.ecore.EReference reference)
Returns
true if a proxy at the given reference should be
resolved by means of a batch run. |
boolean |
isConstructorCallScope(org.eclipse.emf.ecore.EReference reference) |
boolean |
isFeatureCallScope(org.eclipse.emf.ecore.EReference reference) |
protected boolean |
isTypeScope(org.eclipse.emf.ecore.EReference reference) |
IFeatureScopeSession |
newSession(org.eclipse.emf.ecore.resource.Resource context)
Returns a preconfigured feature scope session that is aware of
implicitly imported types such as
CollectionLiterals . |
void |
setDelegate(IScopeProvider delegate) |
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
.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.public IFeatureScopeSession newSession(org.eclipse.emf.ecore.resource.Resource context)
IBatchScopeProvider
CollectionLiterals
.newSession
in interface IBatchScopeProvider
context
- the resource that contains the to-be-linked instances.null
.protected boolean isTypeScope(org.eclipse.emf.ecore.EReference reference)
public boolean isConstructorCallScope(org.eclipse.emf.ecore.EReference reference)
isConstructorCallScope
in interface IBatchScopeProvider
public boolean isFeatureCallScope(org.eclipse.emf.ecore.EReference reference)
isFeatureCallScope
in interface IBatchScopeProvider
protected FeatureScopes getFeatureScopes()
public boolean isBatchScopeable(org.eclipse.emf.ecore.EReference reference)
IBatchScopeProvider
true
if a proxy at the given reference should be
resolved by means of a batch run.isBatchScopeable
in interface IBatchScopeProvider