Interface IExternalContentSupport.IExternalContentProvider

  • Enclosing interface:
    IExternalContentSupport

    public static interface IExternalContentSupport.IExternalContentProvider
    Lightweight 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 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:
        true if 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.