Interface IResourceInitializer

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.xtext.resource.XtextResourceSet createResourceSet​(com.google.inject.Injector injector)
      Returns the resource set.
      boolean forEclipse()
      Returns whether this initializer works for Eclipse.
      java.net.URL resolve​(java.net.URL url)
      Resolves a URL to an implementing file or Jar URL.
      java.net.URI toNetUri​(org.eclipse.emf.common.util.URI uri)
      Converts an Eclipse URI to a java.net.URI.
    • Method Detail

      • createResourceSet

        org.eclipse.xtext.resource.XtextResourceSet createResourceSet​(com.google.inject.Injector injector)
        Returns the resource set.
        Parameters:
        injector - the injector to use for creating the resource set
        Returns:
        the resource set
      • toNetUri

        java.net.URI toNetUri​(org.eclipse.emf.common.util.URI uri)
                       throws java.net.URISyntaxException
        Converts an Eclipse URI to a java.net.URI.
        Parameters:
        uri - the URI to convert
        Returns:
        the converted URI
        Throws:
        java.net.URISyntaxException - in case of URI syntax errors
      • forEclipse

        boolean forEclipse()
        Returns whether this initializer works for Eclipse.
        Returns:
        true for Eclipse, false else
      • resolve

        java.net.URL resolve​(java.net.URL url)
                      throws java.io.IOException
        Resolves a URL to an implementing file or Jar URL.
        Parameters:
        url - the URL to be resolved
        Returns:
        the resolved URL or url
        Throws:
        java.io.IOException - in case of resolution problems