org.eclipse.xtext.ui.generator.templates
Class CodetemplatesGeneratorFragment

java.lang.Object
  extended by org.eclipse.xtext.generator.DefaultGeneratorFragment
      extended by org.eclipse.xtext.generator.AbstractGeneratorFragment
          extended by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment
All Implemented Interfaces:
IGeneratorFragment, NamingAware
Direct Known Subclasses:
CodetemplatesGeneratorFragment

public class CodetemplatesGeneratorFragment
extends AbstractGeneratorFragment

This generator fragment enables an advanced preference page for code templates.

Since:
2.0
Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
CodetemplatesGeneratorFragment()
           
 
Method Summary
static java.lang.String getContentAssistParser(Grammar grammar, Naming naming)
           
 java.util.Set<Binding> getGuiceBindingsUi(Grammar grammar)
          return a map containing the contributed guice bindings for the ui part created in this generator fragment
static java.lang.String getPartialContentAssistParser(Grammar grammar, Naming naming)
           
 java.lang.String[] getRequiredBundlesUi(Grammar grammar)
          return the bundles this fragment requires in ui
 
Methods inherited from class org.eclipse.xtext.generator.AbstractGeneratorFragment
addToPluginXmlRt, addToPluginXmlUi, addToStandaloneSetup, generate, getExportedPackagesRt, getExportedPackagesUi, getGuiceBindingsRt, getNaming, getParameters, getRequiredBundlesRt, getTemplate, registerNaming
 
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

CodetemplatesGeneratorFragment

public CodetemplatesGeneratorFragment()
Method Detail

getGuiceBindingsUi

public java.util.Set<Binding> getGuiceBindingsUi(Grammar grammar)
Description copied from interface: IGeneratorFragment
return a map containing the contributed guice bindings for the ui part created in this generator fragment

Specified by:
getGuiceBindingsUi in interface IGeneratorFragment
Overrides:
getGuiceBindingsUi in class AbstractGeneratorFragment

getRequiredBundlesUi

public java.lang.String[] getRequiredBundlesUi(Grammar grammar)
Description copied from interface: IGeneratorFragment
return the bundles this fragment requires in ui

Specified by:
getRequiredBundlesUi in interface IGeneratorFragment
Overrides:
getRequiredBundlesUi in class AbstractGeneratorFragment

getPartialContentAssistParser

public static java.lang.String getPartialContentAssistParser(Grammar grammar,
                                                             Naming naming)

getContentAssistParser

public static java.lang.String getContentAssistParser(Grammar grammar,
                                                      Naming naming)