Package net.ssehub.easy.dslCore
Class StandaloneInitializer
java.lang.Object
net.ssehub.easy.dslCore.StandaloneInitializer
- All Implemented Interfaces:
IResourceInitializer
Defines a standalone resource initializer.
- Author:
- Holger Eichelberger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.xtext.resource.XtextResourceSetcreateResourceSet(com.google.inject.Injector injector) Returns the resource set.booleanReturns whether this initializer works for Eclipse.Resolves a URL to an implementing file or Jar URL.toNetUri(org.eclipse.emf.common.util.URI uri) Converts an Eclipse URI to a java.net.URI.
-
Constructor Details
-
StandaloneInitializer
public StandaloneInitializer()
-
-
Method Details
-
forEclipse
public boolean forEclipse()Description copied from interface:IResourceInitializerReturns whether this initializer works for Eclipse.- Specified by:
forEclipsein interfaceIResourceInitializer- Returns:
truefor Eclipse,falseelse
-
createResourceSet
public org.eclipse.xtext.resource.XtextResourceSet createResourceSet(com.google.inject.Injector injector) Description copied from interface:IResourceInitializerReturns the resource set.- Specified by:
createResourceSetin interfaceIResourceInitializer- Parameters:
injector- the injector to use for creating the resource set- Returns:
- the resource set
-
toNetUri
Description copied from interface:IResourceInitializerConverts an Eclipse URI to a java.net.URI.- Specified by:
toNetUriin interfaceIResourceInitializer- Parameters:
uri- the URI to convert- Returns:
- the converted URI
- Throws:
URISyntaxException- in case of URI syntax errors
-
resolve
Description copied from interface:IResourceInitializerResolves a URL to an implementing file or Jar URL.- Specified by:
resolvein interfaceIResourceInitializer- Parameters:
url- the URL to be resolved- Returns:
- the resolved URL or
url - Throws:
IOException- in case of resolution problems
-