public class DefaultGeneratorFragment extends java.lang.Object implements IGeneratorFragment, IGeneratorFragmentExtension, IGeneratorFragmentExtension2
| Constructor and Description |
|---|
DefaultGeneratorFragment() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToPluginXmlRt(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
Used to add code to the plugin.xml of the runtime bundle.
|
void |
addToPluginXmlRt(LanguageConfig config,
org.eclipse.xpand2.XpandExecutionContext ctx) |
void |
addToPluginXmlTests(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
Deprecated.
|
void |
addToPluginXmlUi(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
Used to add code to the plugin.xml of the ui bundle.
|
void |
addToPluginXmlUi(LanguageConfig config,
org.eclipse.xpand2.XpandExecutionContext ctx) |
void |
addToStandaloneSetup(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
Used to add code to the generated 'public void register(Injector injector)'-method
|
void |
addToStandaloneSetup(LanguageConfig config,
org.eclipse.xpand2.XpandExecutionContext ctx) |
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
|
void |
generate(LanguageConfig config,
org.eclipse.xpand2.XpandExecutionContext ctx) |
java.lang.String[] |
getExportedPackagesRt(Grammar grammar)
return the exported packages for the runtime bundle
|
java.lang.String[] |
getExportedPackagesTests(Grammar grammar)
return the exported packages for the tests bundle
|
java.lang.String[] |
getExportedPackagesUi(Grammar grammar)
return the exported packages for the ui bundle
|
java.util.Set<Binding> |
getGuiceBindingsRt(Grammar grammar)
return a map containing the contributed guice bindings created in this generator fragment
|
java.util.Set<Binding> |
getGuiceBindingsUi(Grammar grammar)
return a map containing the contributed guice bindings for the ui part created in this generator fragment
|
java.lang.String[] |
getImportedPackagesRt(Grammar grammar)
return the imported packages for the runtime bundle
|
java.lang.String[] |
getImportedPackagesTests(Grammar grammar)
return the imported packages for the tests bundle
|
java.lang.String[] |
getImportedPackagesUi(Grammar grammar)
return the imported packages for the ui bundle
|
java.lang.String[] |
getRequiredBundlesRt(Grammar grammar)
return the bundles this fragment requires at runtime
|
java.lang.String[] |
getRequiredBundlesTests(Grammar grammar)
return the bundles this fragment requires in tests
|
java.lang.String[] |
getRequiredBundlesUi(Grammar grammar)
return the bundles this fragment requires in ui
|
public void addToPluginXmlRt(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragmentaddToPluginXmlRt in interface IGeneratorFragmentctx - - the execution context to use (the plugin.xml file is already opened)public void addToPluginXmlRt(LanguageConfig config, org.eclipse.xpand2.XpandExecutionContext ctx)
addToPluginXmlRt in interface IGeneratorFragmentExtension2public void addToPluginXmlUi(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragmentaddToPluginXmlUi in interface IGeneratorFragmentctx - - the execution context to use (the plugin.xml file is already opened)public void addToPluginXmlUi(LanguageConfig config, org.eclipse.xpand2.XpandExecutionContext ctx)
addToPluginXmlUi in interface IGeneratorFragmentExtension2public void addToStandaloneSetup(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragmentaddToStandaloneSetup in interface IGeneratorFragmentctx - - the execution context to use (the file is already opened, content goes into the register method)public void addToStandaloneSetup(LanguageConfig config, org.eclipse.xpand2.XpandExecutionContext ctx)
addToStandaloneSetup in interface IGeneratorFragmentExtension2@Deprecated public void addToPluginXmlTests(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragmentExtensionaddToPluginXmlTests in interface IGeneratorFragmentExtensionctx - - the execution context to use (the plugin.xml file is already opened)public java.lang.String[] getExportedPackagesRt(Grammar grammar)
IGeneratorFragmentgetExportedPackagesRt in interface IGeneratorFragmentpublic java.lang.String[] getExportedPackagesUi(Grammar grammar)
IGeneratorFragmentgetExportedPackagesUi in interface IGeneratorFragmentpublic java.util.Set<Binding> getGuiceBindingsRt(Grammar grammar)
IGeneratorFragmentgetGuiceBindingsRt in interface IGeneratorFragmentpublic java.util.Set<Binding> getGuiceBindingsUi(Grammar grammar)
IGeneratorFragmentgetGuiceBindingsUi in interface IGeneratorFragmentpublic java.lang.String[] getImportedPackagesRt(Grammar grammar)
IGeneratorFragmentgetImportedPackagesRt in interface IGeneratorFragmentpublic java.lang.String[] getImportedPackagesUi(Grammar grammar)
IGeneratorFragmentgetImportedPackagesUi in interface IGeneratorFragmentpublic java.lang.String[] getRequiredBundlesRt(Grammar grammar)
IGeneratorFragmentgetRequiredBundlesRt in interface IGeneratorFragmentpublic java.lang.String[] getRequiredBundlesUi(Grammar grammar)
IGeneratorFragmentgetRequiredBundlesUi in interface IGeneratorFragmentpublic java.lang.String[] getExportedPackagesTests(Grammar grammar)
IGeneratorFragmentExtensiongetExportedPackagesTests in interface IGeneratorFragmentExtensionpublic java.lang.String[] getImportedPackagesTests(Grammar grammar)
IGeneratorFragmentExtensiongetImportedPackagesTests in interface IGeneratorFragmentExtensionpublic java.lang.String[] getRequiredBundlesTests(Grammar grammar)
IGeneratorFragmentExtensiongetRequiredBundlesTests in interface IGeneratorFragmentExtensionpublic void checkConfiguration(org.eclipse.emf.mwe.core.issues.Issues issues)
IGeneratorFragmentcheckConfiguration in interface IGeneratorFragmentissues - implementors should report configuration issues to this.public void generate(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragmentgenerate in interface IGeneratorFragmentctx - - the execution context to usepublic void generate(LanguageConfig config, org.eclipse.xpand2.XpandExecutionContext ctx)
generate in interface IGeneratorFragmentExtension2