Class XdtoPlatformScopeProvider

  • All Implemented Interfaces:
    org.eclipse.xtext.scoping.IGlobalScopeProvider

    public class XdtoPlatformScopeProvider
    extends org.eclipse.xtext.scoping.impl.AbstractGlobalScopeProvider
    Platform scope provider for XDTO
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.xtext.scoping.IScope getPlatformScope​(org.eclipse.emf.ecore.EReference reference, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter, Version version)
      Returns a corresponding version of platform scope for the given context.
      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)  
      • Methods inherited from class org.eclipse.xtext.scoping.impl.AbstractGlobalScopeProvider

        getResourceDescriptions, getScope, getScope, isIgnoreCase, setCaseInsensitivityHelper, setResourceDescriptionsProvider
    • Constructor Detail

      • XdtoPlatformScopeProvider

        public XdtoPlatformScopeProvider()
    • 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 interface org.eclipse.xtext.scoping.IGlobalScopeProvider
        Overrides:
        getScope in class org.eclipse.xtext.scoping.impl.AbstractGlobalScopeProvider
      • getPlatformScope

        protected org.eclipse.xtext.scoping.IScope getPlatformScope​(org.eclipse.emf.ecore.EReference reference,
                                                                    com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter,
                                                                    Version version)
        Returns a corresponding version of platform scope for the given context.
        Parameters:
        reference - the reference for which to construct a platform scope. Can't be null.
        filter - a filter used to filter elements in the platform scope. May be null.
        version - version of platform scope, can't be null
        Returns:
        the resulting platform scope. Can't be null.