Class EdaptCDOViewProvider

  • All Implemented Interfaces:
    org.eclipse.emf.cdo.view.CDOViewProvider

    public class EdaptCDOViewProvider
    extends org.eclipse.emf.cdo.view.AbstractCDOViewProvider
    implements org.eclipse.emf.cdo.view.CDOViewProvider
    A CDO View provider for Edapt. It deals with connection aware and canonical URI. It also registers in CDO the packages from the resourceset's package registry.
    Finally it stores the root resource. CDOView.getRootResource() as there is no way to obtain it with a connection aware URI.
    Author:
    Christophe Bouhier
    • Field Summary

      • Fields inherited from interface org.eclipse.emf.cdo.view.CDOViewProvider

        DEFAULT_PRIORITY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.emf.cdo.eresource.CDOResource getRootResource​(String repoName)
      Get the root resource for a repository.
      org.eclipse.emf.cdo.view.CDOView getView​(org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)  
      • Methods inherited from class org.eclipse.emf.cdo.view.AbstractCDOViewProvider

        getPriority, getRegex, getResourceURI, matchesRegex, setPriority, setRegex
      • Methods inherited from interface org.eclipse.emf.cdo.view.CDOViewProvider

        getPriority, getRegex, getResourceURI, matchesRegex
    • Constructor Detail

      • EdaptCDOViewProvider

        public EdaptCDOViewProvider()
      • EdaptCDOViewProvider

        public EdaptCDOViewProvider​(String regex)
      • EdaptCDOViewProvider

        public EdaptCDOViewProvider​(String regex,
                                    int priority)
    • Method Detail

      • getView

        public org.eclipse.emf.cdo.view.CDOView getView​(org.eclipse.emf.common.util.URI uri,
                                                        org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
        Specified by:
        getView in interface org.eclipse.emf.cdo.view.CDOViewProvider
      • getRootResource

        public org.eclipse.emf.cdo.eresource.CDOResource getRootResource​(String repoName)
        Get the root resource for a repository. This will only result if this provider was previously consulted.
        Parameters:
        repoName -
        Returns:
        the uri