org.eclipse.xtext.resource
Interface IExternalContentSupport
- All Known Implementing Classes:
- ExternalContentSupport
public interface IExternalContentSupport
Allows to configure an arbitrary ResourceSet
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.
- Author:
- Sebastian Zarnekow - Initial contribution and API
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 be
null
.