Package org.eclipse.xtext.resource
Interface IExternalContentSupport.IExternalContentProvider
-
- Enclosing interface:
- IExternalContentSupport
public static interface IExternalContentSupport.IExternalContentProviderLightweight abstraction for a contributor of external state. The state is not necessary up to date with respect to the open documents or the persisted resources. It may be a snapshot from a given point in time.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IExternalContentSupport.IExternalContentProvidergetActualContentProvider()Some use cases may require the latest and most up to date content - mostly in a secured, transactional context such as a rename refactoring.java.lang.StringgetContent(org.eclipse.emf.common.util.URI uri)Get the content that will shadow the persistent state.booleanhasContent(org.eclipse.emf.common.util.URI uri)
-
-
-
Method Detail
-
getContent
java.lang.String getContent(org.eclipse.emf.common.util.URI uri)
Get the content that will shadow the persistent state.- Returns:
- the actual content that should be parsed to load a resource.
-
hasContent
boolean hasContent(org.eclipse.emf.common.util.URI uri)
- Returns:
trueif and only if external content should be used instead of the persistent one.
-
getActualContentProvider
IExternalContentSupport.IExternalContentProvider getActualContentProvider()
Some use cases may require the latest and most up to date content - mostly in a secured, transactional context such as a rename refactoring.- Returns:
- a view on the content provider that reflects always the latest state.
-
-