Class DefaultGeneratorModule

  • All Implemented Interfaces:
    com.google.inject.Module

    public class DefaultGeneratorModule
    extends org.eclipse.xtext.service.AbstractGenericModule
    An instance of this module is assigned to the configuration property of XtextGenerator. It contains the project configuration and the code configuration. If you need to configure more aspects of the generator, create a subclass and bind your custom configuration classes. For example, in order to adapt the naming of the generated code, use the following:
     class MyGeneratorModule extends DefaultGeneratorModule {
         def Class<? extends XtextGeneratorNaming> bindXtextGeneratorNaming() {
             MyGeneratorNaming
         }
     }
     
    • Constructor Detail

      • DefaultGeneratorModule

        public DefaultGeneratorModule()
    • Method Detail

      • checkConfiguration

        protected void checkConfiguration​(Issues issues)
      • configureXtextProjectConfig

        public void configureXtextProjectConfig​(com.google.inject.Binder binder)
      • configureCodeConfig

        public void configureCodeConfig​(com.google.inject.Binder binder)
      • configureResourceSet

        public void configureResourceSet​(com.google.inject.Binder binder)
      • configureLineSeparatorInformation

        public void configureLineSeparatorInformation​(com.google.inject.Binder binder)
      • configureIEncodingProvider

        public void configureIEncodingProvider​(com.google.inject.Binder binder)
      • setCode

        public void setCode​(CodeConfig code)