Package org.eclipse.xtext.resource
Interface IExternalContentSupport
-
- All Known Implementing Classes:
ExternalContentSupport
public interface IExternalContentSupport
Allows to configure an arbitraryResourceSet
with an external content provider. Such a resource sets may obtain the content for a resource from a dirty in-memory state instead of the persistent state of the underlying IResource, file or similar.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
IExternalContentSupport.IExternalContentProvider
Lightweight abstraction for a contributor of external state.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
configureResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, IExternalContentSupport.IExternalContentProvider contentProvider)
Configure the resource set with an provider of dirty or external content.
-
-
-
Method Detail
-
configureResourceSet
void configureResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, IExternalContentSupport.IExternalContentProvider contentProvider)
Configure the resource set with an provider of dirty or external content. The resource set will transparently use the external content to populate its resources. Subsequent calls will create sort of layers that allow to shadow previously provided content. Neither of both arguments may benull
.
-
-