Package com._1c.g5.v8.dt.bsl.bm.scoping
Class BmAwareBslGlobalScopeProvider
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.bsl.scoping.BslGlobalScopeProvider
com._1c.g5.v8.dt.bsl.bm.scoping.BmAwareBslGlobalScopeProvider
- All Implemented Interfaces:
IProjectGlobalScopeProvider,IDtProjectGlobalScopeProvider,org.eclipse.xtext.scoping.IGlobalScopeProvider
public class BmAwareBslGlobalScopeProvider
extends BslGlobalScopeProvider
implements IProjectGlobalScopeProvider, IDtProjectGlobalScopeProvider
BSL Global scope provider aware of BM index
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.xtext.scoping.IScopecreateContainerScope(org.eclipse.xtext.scoping.IScope parent, org.eclipse.xtext.resource.IContainer container, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter, org.eclipse.emf.ecore.EClass type, boolean ignoreCase) protected org.eclipse.xtext.scoping.IScopegetDefaultGlobalScope(org.eclipse.xtext.scoping.IScope parent, org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.emf.ecore.EReference reference, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter) Returns a default global scope for the given parent scope and the given context.org.eclipse.xtext.scoping.IScopegetScope(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 givenIProjectcontext.org.eclipse.xtext.scoping.IScopegetScope(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 givenIProjectcontext.org.eclipse.xtext.scoping.IScopegetScope(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 objectMethods inherited from class com._1c.g5.v8.dt.bsl.scoping.BslGlobalScopeProvider
getScopeMethods inherited from class com._1c.g5.v8.dt.platform.scoping.PlatformAwareGlobalScopeProvider
getDefaultGlobalScope, getDefaultGlobalScope, getPlatformScope, setPlatformScopeProviderMethods inherited from class com._1c.g5.modeling.xtext.scoping.LightDefaultGlobalScopeProvider
createContainerScopeWithContext, getCacheKey, getScope, getScope, getVisibleContainersMethods inherited from class org.eclipse.xtext.scoping.impl.AbstractGlobalScopeProvider
getResourceDescriptions, getScope, isIgnoreCase, setCaseInsensitivityHelper, setResourceDescriptionsProviderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.e1c.g5.dt.core.api.scoping.IDtProjectGlobalScopeProvider
getResourceDescriptionsMethods inherited from interface org.eclipse.xtext.scoping.IGlobalScopeProvider
getScope
-
Constructor Details
-
BmAwareBslGlobalScopeProvider
public BmAwareBslGlobalScopeProvider()
-
-
Method Details
-
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:IDtProjectGlobalScopeProviderReturns a global scope for the givenIProjectcontext.- Specified by:
getScopein interfaceIDtProjectGlobalScopeProvider- Parameters:
project- theIDtProjectfrom which the global scope is looked at, cannot benullreference- the reference for which to construct a global scope, cannot benullfilter- 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:
IScoperepresenting the inner mostIScopefor the passed project and reference. The result cannot benull, returnIScope.NULLSCOPEinstead.
-
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:IProjectGlobalScopeProviderReturns a global scope for the givenIProjectcontext.- Specified by:
getScopein interfaceIProjectGlobalScopeProvider- Parameters:
project- theIProjectfrom which the global scope is looked at, cannot benullreference- the reference for which to construct a global scope, cannot benullfilter- 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:
IScoperepresenting the inner mostIScopefor the passed project and reference. The result cannot benull, returnIScope.NULLSCOPEinstead.
-
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:IDtProjectGlobalScopeProviderGets scope by context object- Specified by:
getScopein interfaceIDtProjectGlobalScopeProvider- Parameters:
context- contextEObjectfor computing relatingIScope, cannot benullreference-EReferencefor computingEClassof the objects included to theIScope, cannot benullfilter- filter item in resultingIScope, can benullif there is no filters- Returns:
IScopewith indexing items for EDT, nevernull
-
getDefaultGlobalScope
protected org.eclipse.xtext.scoping.IScope getDefaultGlobalScope(org.eclipse.xtext.scoping.IScope parent, org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.emf.ecore.EReference reference, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter) Description copied from class:PlatformAwareGlobalScopeProviderReturns a default global scope for the given parent scope and the given context.- Overrides:
getDefaultGlobalScopein classPlatformAwareGlobalScopeProvider- Parameters:
parent- the parent scoperesource- the resource from which the global scope is looked at.reference- the reference for which to construct a global scope.filter- a filter used to filter down the elements contained in each scope. Scopes will only contain elements for which the filter returnedtrue.- Returns:
- the resulting default global scope. Can't be
null.
-
createContainerScope
protected org.eclipse.xtext.scoping.IScope createContainerScope(org.eclipse.xtext.scoping.IScope parent, org.eclipse.xtext.resource.IContainer container, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter, org.eclipse.emf.ecore.EClass type, boolean ignoreCase) - Overrides:
createContainerScopein classPlatformAwareGlobalScopeProvider
-