Package net.ssehub.easy.dslCore
Interface IResourceInitializer
-
- All Known Implementing Classes:
EclipseResourceInitializer,StandaloneInitializer
public interface IResourceInitializerDefines a plug-in resource initializer.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.xtext.resource.XtextResourceSetcreateResourceSet(com.google.inject.Injector injector)Returns the resource set.booleanforEclipse()Returns whether this initializer works for Eclipse.java.net.URLresolve(java.net.URL url)Resolves a URL to an implementing file or Jar URL.java.net.URItoNetUri(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.URISyntaxExceptionConverts 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:
truefor Eclipse,falseelse
-
resolve
java.net.URL resolve(java.net.URL url) throws java.io.IOExceptionResolves 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
-
-