|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.xtext.generator.CompositeGeneratorFragment
public class CompositeGeneratorFragment
| Field Summary | |
|---|---|
protected java.util.List<IGeneratorFragment> |
fragments
|
| Constructor Summary | |
|---|---|
CompositeGeneratorFragment()
|
|
| Method Summary | |
|---|---|
void |
addFragment(IGeneratorFragment fragment)
|
void |
addFragments(CompositeGeneratorFragment fragment)
|
void |
addLog(LoggingGeneratorFragment message)
|
void |
addToPluginXmlRt(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
Used to add code to the plugin.xml of the runtime bundle. |
void |
addToPluginXmlUi(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
Used to add code to the plugin.xml of the ui bundle. |
void |
addToStandaloneSetup(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
Used to add code to the generated 'public void register(Injector injector)'-method |
void |
addWarn(LoggingGeneratorFragment message)
|
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[] |
getExportedPackagesRt(Grammar grammar)
return the exported packages for the runtime 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[] |
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[] |
getRequiredBundlesUi(Grammar grammar)
return the bundles this fragment requires in ui |
void |
registerNaming(Naming n)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.List<IGeneratorFragment> fragments
| Constructor Detail |
|---|
public CompositeGeneratorFragment()
| Method Detail |
|---|
public void addFragment(IGeneratorFragment fragment)
public void addFragments(CompositeGeneratorFragment fragment)
public void addLog(LoggingGeneratorFragment message)
public void addWarn(LoggingGeneratorFragment message)
public void addToPluginXmlRt(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragment
addToPluginXmlRt in interface IGeneratorFragmentctx - - the execution context to use (the plugin.xml file is already opened)
public void addToPluginXmlUi(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragment
addToPluginXmlUi in interface IGeneratorFragmentctx - - the execution context to use (the plugin.xml file is already opened)
public void addToStandaloneSetup(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragment
addToStandaloneSetup in interface IGeneratorFragmentctx - - the execution context to use (the file is already opened, content goes into the register method)
public void generate(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragment
generate in interface IGeneratorFragmentctx - - the execution context to usepublic java.lang.String[] getExportedPackagesRt(Grammar grammar)
IGeneratorFragment
getExportedPackagesRt in interface IGeneratorFragmentpublic java.lang.String[] getImportedPackagesRt(Grammar grammar)
IGeneratorFragment
getImportedPackagesRt in interface IGeneratorFragmentpublic java.lang.String[] getExportedPackagesUi(Grammar grammar)
IGeneratorFragment
getExportedPackagesUi in interface IGeneratorFragmentpublic java.lang.String[] getImportedPackagesUi(Grammar grammar)
IGeneratorFragment
getImportedPackagesUi in interface IGeneratorFragmentpublic java.util.Set<Binding> getGuiceBindingsRt(Grammar grammar)
IGeneratorFragment
getGuiceBindingsRt in interface IGeneratorFragmentpublic java.util.Set<Binding> getGuiceBindingsUi(Grammar grammar)
IGeneratorFragment
getGuiceBindingsUi in interface IGeneratorFragmentpublic java.lang.String[] getRequiredBundlesRt(Grammar grammar)
IGeneratorFragment
getRequiredBundlesRt in interface IGeneratorFragmentpublic java.lang.String[] getRequiredBundlesUi(Grammar grammar)
IGeneratorFragment
getRequiredBundlesUi in interface IGeneratorFragmentpublic void checkConfiguration(org.eclipse.emf.mwe.core.issues.Issues issues)
IGeneratorFragment
checkConfiguration in interface IGeneratorFragmentissues - implementors should report configuration issues to this.public void registerNaming(Naming n)
registerNaming in interface NamingAware
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||