Package com.e1c.g5.dt.core.api.scoping
Interface IDtProjectGlobalScopeProvider
-
- All Superinterfaces:
org.eclipse.xtext.scoping.IGlobalScopeProvider
- All Known Implementing Classes:
BmAwareBslGlobalScopeProvider
,MdGlobalScopeProvider
public interface IDtProjectGlobalScopeProvider extends org.eclipse.xtext.scoping.IGlobalScopeProvider
Scope provider byIDtProject
context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.xtext.resource.IResourceDescriptions
getResourceDescriptions(org.eclipse.emf.ecore.resource.Resource resource)
Provides the resource descriptions for the givenResource
.org.eclipse.xtext.scoping.IScope
getScope(IDtProject project, org.eclipse.emf.ecore.EReference reference, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter)
Returns a global scope for the givenIProject
context.org.eclipse.xtext.scoping.IScope
getScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter)
Gets scope by context object
-
-
-
Method Detail
-
getScope
org.eclipse.xtext.scoping.IScope getScope(IDtProject project, org.eclipse.emf.ecore.EReference reference, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter)
Returns a global scope for the givenIProject
context.- Parameters:
project
- theIDtProject
from which the global scope is looked at, cannot benull
reference
- the reference for which to construct a global scope, cannot benull
filter
- filter a filter used to filter down the elements contained in each scope. Scopes will only contain elements for which the filter returnedtrue
, can benull
- Returns:
IScope
representing the inner mostIScope
for the passed project and reference. The result cannot benull
, returnIScope.NULLSCOPE
instead.
-
getScope
org.eclipse.xtext.scoping.IScope getScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter)
Gets scope by context object- Parameters:
context
- contextEObject
for computing relatingIScope
, cannot benull
reference
-EReference
for computingEClass
of the objects included to theIScope
, cannot benull
filter
- filter item in resultingIScope
, can benull
if there is no filters- Returns:
IScope
with indexing items for EDT, nevernull
-
getResourceDescriptions
org.eclipse.xtext.resource.IResourceDescriptions getResourceDescriptions(org.eclipse.emf.ecore.resource.Resource resource)
Provides the resource descriptions for the givenResource
.- Parameters:
resource
- the resource that is currently used, cannot benull
- Returns:
- the
IResourceDescriptions
according to the usage context, nevernull
-
-