public abstract class AbstractProjectAwareResourceDescriptionsProvider extends ResourceDescriptionsProvider
ResourceDescriptionsProvider
filters
locally defined elements from the resource descriptions during the indexing phase.Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractProjectAwareResourceDescriptionsProvider.FilteringResourceDescriptions
Resource descriptions implementation that allows to filter a delegate instance
based on the URI of the resource description.
|
protected static class |
AbstractProjectAwareResourceDescriptionsProvider.ShadowedFilteringResourceDescriptions
Resource descriptions implementation that allows to filter a delegate instance
based on the URI of the resource description.
|
LIVE_SCOPE, NAMED_BUILDER_SCOPE, PERSISTED_DESCRIPTIONS
Constructor and Description |
---|
AbstractProjectAwareResourceDescriptionsProvider() |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
getProjectName(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
IResourceDescriptions |
getResourceDescriptions(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
And if we are in the indexing phase, we don't want to see the local resources.
|
protected boolean |
isProjectLocal(org.eclipse.emf.common.util.URI uri,
java.lang.String encodedProjectName) |
createBuilderScopeResourceDescriptions, createLiveScopeResourceDescriptions, createPersistedResourceDescriptions, createResourceDescriptions, getResourceDescriptions, setBuilderScopeResourceDescriptions, setLiveScopeResourceDescriptions, setPersistedResourceDescriptions, setResourceDescriptions
public AbstractProjectAwareResourceDescriptionsProvider()
public IResourceDescriptions getResourceDescriptions(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
getResourceDescriptions
in interface IResourceDescriptionsProvider
getResourceDescriptions
in class ResourceDescriptionsProvider
resourceSet
- the resource set that is currently used.IResourceDescriptions
according to the usage context.protected boolean isProjectLocal(org.eclipse.emf.common.util.URI uri, java.lang.String encodedProjectName)
protected abstract java.lang.String getProjectName(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)