|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.generator.DefaultGeneratorFragment org.eclipse.xtext.generator.LoggingGeneratorFragment
public class LoggingGeneratorFragment
Constructor Summary | |
---|---|
LoggingGeneratorFragment()
|
Method Summary | |
---|---|
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 |
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 |
org.apache.log4j.Level |
getLevel()
|
java.lang.String |
getMessage()
|
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 |
setLevel(org.apache.log4j.Level level)
|
void |
setMessage(java.lang.String message)
|
Methods inherited from class org.eclipse.xtext.generator.DefaultGeneratorFragment |
---|
checkConfiguration, getImportedPackagesRt, getImportedPackagesUi |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoggingGeneratorFragment()
Method Detail |
---|
public void generate(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragment
generate
in interface IGeneratorFragment
generate
in class DefaultGeneratorFragment
ctx
- - the execution context to usepublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
public org.apache.log4j.Level getLevel()
public void setLevel(org.apache.log4j.Level level)
public void addToPluginXmlRt(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragment
addToPluginXmlRt
in interface IGeneratorFragment
addToPluginXmlRt
in class DefaultGeneratorFragment
ctx
- - 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 IGeneratorFragment
addToPluginXmlUi
in class DefaultGeneratorFragment
ctx
- - 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 IGeneratorFragment
addToStandaloneSetup
in class DefaultGeneratorFragment
ctx
- - the execution context to use (the file is already opened, content goes into the register method)public java.lang.String[] getExportedPackagesRt(Grammar grammar)
IGeneratorFragment
getExportedPackagesRt
in interface IGeneratorFragment
getExportedPackagesRt
in class DefaultGeneratorFragment
public java.lang.String[] getExportedPackagesUi(Grammar grammar)
IGeneratorFragment
getExportedPackagesUi
in interface IGeneratorFragment
getExportedPackagesUi
in class DefaultGeneratorFragment
public java.util.Set<Binding> getGuiceBindingsRt(Grammar grammar)
IGeneratorFragment
getGuiceBindingsRt
in interface IGeneratorFragment
getGuiceBindingsRt
in class DefaultGeneratorFragment
public java.util.Set<Binding> getGuiceBindingsUi(Grammar grammar)
IGeneratorFragment
getGuiceBindingsUi
in interface IGeneratorFragment
getGuiceBindingsUi
in class DefaultGeneratorFragment
public java.lang.String[] getRequiredBundlesRt(Grammar grammar)
IGeneratorFragment
getRequiredBundlesRt
in interface IGeneratorFragment
getRequiredBundlesRt
in class DefaultGeneratorFragment
public java.lang.String[] getRequiredBundlesUi(Grammar grammar)
IGeneratorFragment
getRequiredBundlesUi
in interface IGeneratorFragment
getRequiredBundlesUi
in class DefaultGeneratorFragment
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |