public class LanguageConfig extends CompositeGeneratorFragment
fragments
Constructor and Description |
---|
LanguageConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addLoadedResource(java.lang.String uri) |
void |
checkConfiguration(org.eclipse.emf.mwe.core.issues.Issues issues)
Called by the container after configuration so the component can validate
the configuration before invocation.
|
void |
generate(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
can be used to generate whatever necessary
|
java.lang.String |
getEncoding() |
java.util.List<java.lang.String> |
getFileExtensions(Grammar g) |
org.eclipse.emf.ecore.resource.ResourceSet |
getForcedResourceSet() |
Grammar |
getGrammar() |
java.util.List<java.lang.String> |
getLoadedResources() |
void |
initialize(boolean isUi) |
protected boolean |
isCheckFileExtension() |
void |
setCheckFileExtension(boolean shouldCheckFileExtension) |
void |
setEncoding(java.lang.String encoding) |
void |
setFileExtensions(java.lang.String fileExtensions) |
void |
setForcedResourceSet(org.eclipse.emf.ecore.resource.ResourceSet forcedResourceSet) |
void |
setUri(java.lang.String uri) |
protected void |
validateAllImports(Grammar grammar) |
protected void |
validateGrammar(Grammar grammar) |
protected void |
validateReferencedMetamodel(ReferencedMetamodel ref) |
addFragment, addFragments, addLog, addToPluginXmlRt, addToPluginXmlRt, addToPluginXmlTests, addToPluginXmlUi, addToPluginXmlUi, addToStandaloneSetup, addToStandaloneSetup, addWarn, generate, getDefaultRuntimeModuleClassName, getDefaultUiModuleClassName, getExportedPackagesIde, getExportedPackagesRt, getExportedPackagesTests, getExportedPackagesUi, getGuiceBindingsRt, getGuiceBindingsUi, getImportedPackagesIde, getImportedPackagesRt, getImportedPackagesTests, getImportedPackagesUi, getRequiredBundlesIde, getRequiredBundlesRt, getRequiredBundlesTests, getRequiredBundlesUi, registerNaming
public void setForcedResourceSet(org.eclipse.emf.ecore.resource.ResourceSet forcedResourceSet)
public org.eclipse.emf.ecore.resource.ResourceSet getForcedResourceSet()
public void addLoadedResource(java.lang.String uri)
public java.util.List<java.lang.String> getLoadedResources()
public void generate(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragment
generate
in interface IGeneratorFragment
generate
in class CompositeGeneratorFragment
ctx
- - the execution context to usepublic void checkConfiguration(org.eclipse.emf.mwe.core.issues.Issues issues)
IGeneratorFragment
checkConfiguration
in interface IGeneratorFragment
checkConfiguration
in class CompositeGeneratorFragment
issues
- implementors should report configuration issues to this.protected boolean isCheckFileExtension()
public void setCheckFileExtension(boolean shouldCheckFileExtension)
public void setFileExtensions(java.lang.String fileExtensions)
public java.util.List<java.lang.String> getFileExtensions(Grammar g)
public void initialize(boolean isUi)
public void setUri(java.lang.String uri)
protected void validateGrammar(Grammar grammar)
protected void validateAllImports(Grammar grammar)
protected void validateReferencedMetamodel(ReferencedMetamodel ref)
public void setEncoding(java.lang.String encoding)
public java.lang.String getEncoding()