Class MdGlobalScopeProvider

java.lang.Object
org.eclipse.xtext.scoping.impl.AbstractGlobalScopeProvider
All Implemented Interfaces:
IProjectGlobalScopeProvider, IDtProjectGlobalScopeProvider, org.eclipse.xtext.scoping.IGlobalScopeProvider

Global scope provider for the Md.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.xtext.resource.IResourceDescriptions
    getResourceDescriptions(org.eclipse.emf.ecore.resource.Resource resource)
    Provides the resource descriptions for the given Resource.
    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 given IProject 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 given IProject 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
    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)
     
    protected List<org.eclipse.xtext.resource.IContainer>
    getVisibleContainers(org.eclipse.emf.ecore.resource.Resource resource)
     

    Methods inherited from class com._1c.g5.modeling.xtext.scoping.LightDefaultGlobalScopeProvider

    createContainerScopeWithContext, getCacheKey, getScope, getScope

    Methods inherited from class org.eclipse.xtext.scoping.impl.AbstractGlobalScopeProvider

    getScope, isIgnoreCase, setCaseInsensitivityHelper, setResourceDescriptionsProvider

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MdGlobalScopeProvider

      public MdGlobalScopeProvider()
  • Method Details

    • 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 interface org.eclipse.xtext.scoping.IGlobalScopeProvider
      Overrides:
      getScope in class PlatformAwareGlobalScopeProvider
    • 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 given Resource.
      Specified by:
      getResourceDescriptions in interface IDtProjectGlobalScopeProvider
      Overrides:
      getResourceDescriptions in class org.eclipse.xtext.scoping.impl.AbstractGlobalScopeProvider
      Parameters:
      resource - the resource that is currently used, cannot be null
      Returns:
      the IResourceDescriptions according to the usage context, never null
    • 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 given IProject context.
      Specified by:
      getScope in interface IDtProjectGlobalScopeProvider
      Parameters:
      project - the IDtProject from which the global scope is looked at, cannot be null
      reference - the reference for which to construct a global scope, cannot be null
      filter - filter a filter used to filter down the elements contained in each scope. Scopes will only contain elements for which the filter returned true, can be null
      Returns:
      IScope representing the inner most IScope for the passed project and reference. The result cannot be null, return IScope.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 given IProject context.
      Specified by:
      getScope in interface IProjectGlobalScopeProvider
      Parameters:
      project - the IProject from which the global scope is looked at, cannot be null
      reference - the reference for which to construct a global scope, cannot be null
      filter - filter a filter used to filter down the elements contained in each scope. Scopes will only contain elements for which the filter returned true, can be null
      Returns:
      IScope representing the inner most IScope for the passed project and reference. The result cannot be null, return IScope.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 interface IDtProjectGlobalScopeProvider
      Parameters:
      context - context EObject for computing relating IScope, cannot be null
      reference - EReference for computing EClass of the objects included to the IScope, cannot be null
      filter - filter item in resulting IScope, can be null if there is no filters
      Returns:
      IScope with indexing items for EDT, never null
    • getVisibleContainers

      protected List<org.eclipse.xtext.resource.IContainer> getVisibleContainers(org.eclipse.emf.ecore.resource.Resource resource)
      Overrides:
      getVisibleContainers in class LightDefaultGlobalScopeProvider