Class ImportUriGlobalScopeProvider

    • Constructor Detail

      • ImportUriGlobalScopeProvider

        public ImportUriGlobalScopeProvider()
    • Method Detail

      • setImportResolver

        public void setImportResolver​(ImportUriResolver importResolver)
      • setCache

        public void setCache​(org.eclipse.xtext.util.IResourceScopeCache cache)
      • getResourceDescriptions

        public IResourceDescriptions getResourceDescriptions​(org.eclipse.emf.ecore.resource.Resource resource,
                                                             java.util.Collection<org.eclipse.emf.common.util.URI> importUris)
      • getImportedUris

        protected java.util.LinkedHashSet<org.eclipse.emf.common.util.URI> getImportedUris​(org.eclipse.emf.ecore.resource.Resource resource)
      • createURICollector

        protected org.eclipse.xtext.util.IAcceptor<java.lang.String> createURICollector​(org.eclipse.emf.ecore.resource.Resource resource,
                                                                                        java.util.Set<org.eclipse.emf.common.util.URI> collectInto)
        Provides the acceptor for import URI strings that will populate the given set of URIs. The default implementation creates a new ImportUriGlobalScopeProvider.URICollector. I creates the imported URIs and normalizes potentially given class-path URIs to platform or file URIs.
        Since:
        2.5
      • createLazyResourceScope

        protected IScope createLazyResourceScope​(IScope parent,
                                                 org.eclipse.emf.common.util.URI uri,
                                                 IResourceDescriptions descriptions,
                                                 org.eclipse.emf.ecore.EClass type,
                                                 com.google.common.base.Predicate<IEObjectDescription> filter,
                                                 boolean ignoreCase)
      • setLoadOnDemandDescriptions

        public void setLoadOnDemandDescriptions​(com.google.inject.Provider<LoadOnDemandResourceDescriptions> loadOnDemandDescriptions)