public class ImportUriGlobalScopeProvider extends AbstractGlobalScopeProvider
Modifier and Type | Class and Description |
---|---|
static class |
ImportUriGlobalScopeProvider.URICollector
The default acceptor for import URIs.
|
Constructor and Description |
---|
ImportUriGlobalScopeProvider() |
Modifier and Type | Method and Description |
---|---|
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) |
protected 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 . |
protected java.util.LinkedHashSet<org.eclipse.emf.common.util.URI> |
getImportedUris(org.eclipse.emf.ecore.resource.Resource resource) |
ImportUriResolver |
getImportUriResolver() |
com.google.inject.Provider<LoadOnDemandResourceDescriptions> |
getLoadOnDemandDescriptions() |
IResourceDescriptions |
getResourceDescriptions(org.eclipse.emf.ecore.resource.Resource resource,
java.util.Collection<org.eclipse.emf.common.util.URI> importUris) |
protected IScope |
getScope(org.eclipse.emf.ecore.resource.Resource resource,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass type,
com.google.common.base.Predicate<IEObjectDescription> filter) |
void |
setCache(IResourceScopeCache cache) |
void |
setImportResolver(ImportUriResolver importResolver) |
void |
setLoadOnDemandDescriptions(com.google.inject.Provider<LoadOnDemandResourceDescriptions> loadOnDemandDescriptions) |
getResourceDescriptions, getScope, getScope, isIgnoreCase, setCaseInsensitivityHelper, setResourceDescriptionsProvider
public ImportUriResolver getImportUriResolver()
public void setImportResolver(ImportUriResolver importResolver)
public void setCache(IResourceScopeCache cache)
public IResourceDescriptions getResourceDescriptions(org.eclipse.emf.ecore.resource.Resource resource, java.util.Collection<org.eclipse.emf.common.util.URI> importUris)
protected IScope getScope(org.eclipse.emf.ecore.resource.Resource resource, boolean ignoreCase, org.eclipse.emf.ecore.EClass type, com.google.common.base.Predicate<IEObjectDescription> filter)
getScope
in class AbstractGlobalScopeProvider
protected java.util.LinkedHashSet<org.eclipse.emf.common.util.URI> getImportedUris(org.eclipse.emf.ecore.resource.Resource resource)
protected IAcceptor<java.lang.String> createURICollector(org.eclipse.emf.ecore.resource.Resource resource, java.util.Set<org.eclipse.emf.common.util.URI> collectInto)
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.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)
public void setLoadOnDemandDescriptions(com.google.inject.Provider<LoadOnDemandResourceDescriptions> loadOnDemandDescriptions)
public com.google.inject.Provider<LoadOnDemandResourceDescriptions> getLoadOnDemandDescriptions()