Package com._1c.g5.v8.dt.md.scoping
Class MdGlobalScopeProvider
- java.lang.Object
-
- org.eclipse.xtext.scoping.impl.AbstractGlobalScopeProvider
-
- com._1c.g5.modeling.xtext.scoping.LightDefaultGlobalScopeProvider
-
- com._1c.g5.v8.dt.platform.scoping.PlatformAwareGlobalScopeProvider
-
- com._1c.g5.v8.dt.md.scoping.MdGlobalScopeProvider
-
- All Implemented Interfaces:
IProjectGlobalScopeProvider
,IDtProjectGlobalScopeProvider
,org.eclipse.xtext.scoping.IGlobalScopeProvider
public class MdGlobalScopeProvider extends PlatformAwareGlobalScopeProvider implements IProjectGlobalScopeProvider, IDtProjectGlobalScopeProvider
Global scope provider for the Md.
-
-
Constructor Summary
Constructors Constructor Description MdGlobalScopeProvider()
-
Method Summary
All Methods Instance Methods Concrete 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.core.resources.IProject 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 objectorg.eclipse.xtext.scoping.IScope
getScope(org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EReference reference, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter)
protected List<org.eclipse.xtext.resource.IContainer>
getVisibleContainers(org.eclipse.emf.ecore.resource.Resource resource)
-
Methods inherited from class com._1c.g5.v8.dt.platform.scoping.PlatformAwareGlobalScopeProvider
createContainerScope, getDefaultGlobalScope, getDefaultGlobalScope, getDefaultGlobalScope, getPlatformScope, setPlatformScopeProvider
-
Methods inherited from class com._1c.g5.modeling.xtext.scoping.LightDefaultGlobalScopeProvider
createContainerScopeWithContext, getCacheKey, getScope, getScope
-
-
-
-
Method Detail
-
getScope
public org.eclipse.xtext.scoping.IScope getScope(org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EReference reference, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter)
- Specified by:
getScope
in interfaceorg.eclipse.xtext.scoping.IGlobalScopeProvider
- Overrides:
getScope
in classPlatformAwareGlobalScopeProvider
-
getResourceDescriptions
public org.eclipse.xtext.resource.IResourceDescriptions getResourceDescriptions(org.eclipse.emf.ecore.resource.Resource resource)
Description copied from interface:IDtProjectGlobalScopeProvider
Provides the resource descriptions for the givenResource
.- Specified by:
getResourceDescriptions
in interfaceIDtProjectGlobalScopeProvider
- Overrides:
getResourceDescriptions
in classorg.eclipse.xtext.scoping.impl.AbstractGlobalScopeProvider
- Parameters:
resource
- the resource that is currently used, cannot benull
- Returns:
- the
IResourceDescriptions
according to the usage context, nevernull
-
getScope
public 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)
Description copied from interface:IDtProjectGlobalScopeProvider
Returns a global scope for the givenIProject
context.- Specified by:
getScope
in interfaceIDtProjectGlobalScopeProvider
- 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
public org.eclipse.xtext.scoping.IScope getScope(org.eclipse.core.resources.IProject project, org.eclipse.emf.ecore.EReference reference, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter)
Description copied from interface:IProjectGlobalScopeProvider
Returns a global scope for the givenIProject
context.- Specified by:
getScope
in interfaceIProjectGlobalScopeProvider
- Parameters:
project
- theIProject
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
public 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)
Description copied from interface:IDtProjectGlobalScopeProvider
Gets scope by context object- Specified by:
getScope
in interfaceIDtProjectGlobalScopeProvider
- 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
-
getVisibleContainers
protected List<org.eclipse.xtext.resource.IContainer> getVisibleContainers(org.eclipse.emf.ecore.resource.Resource resource)
- Overrides:
getVisibleContainers
in classLightDefaultGlobalScopeProvider
-
-