public static void generateExtensionManager(File rootFolder) throws IOException {
  File extManager=new File(rootFolder,IDE_INJECTOR_PATH);
  StringBuilder builder=new StringBuilder();
  builder.append("package " + "org.eclipse.che.ide.client.inject;\n\n");
  builder.append("import org.eclipse.che.ide.client.BootstrapController;\n");
  builder.append("import com.google.gwt.inject.client.GinModules;\n");
  builder.append("import com.google.gwt.inject.client.Ginjector;\n");
  builder.append("\n");
  builder.append("/**\n");
  builder.append(" * THIS CLASS WILL BE OVERRIDDEN BY MAVEN BUILD. DON'T EDIT CLASS, IT WILL HAVE NO EFFECT.\n");
  builder.append(" * \n");
  builder.append(" * Interface for GIN Injector, that provides access to the top level\n");
  builder.append(" * application components. Implementation of Injector is generated\n");
  builder.append(" * on compile time.\n");
  builder.append(" */\n");
  builder.append("@GinModules({\n");
  generateListOfModules(builder);
  builder.append("})\n");
  builder.append("public interface IDEInjector extends Ginjector\n");
  builder.append("{\n");
  builder.append("\n");
  builder.append(GeneratorUtils.TAB + "/**\n");
  builder.append(GeneratorUtils.TAB + " * @return the instance of BootstrapController\n");
  builder.append(GeneratorUtils.TAB + " */\n");
  builder.append(GeneratorUtils.TAB + "BootstrapController getBootstrapController();\n");
  builder.append("\n");
  builder.append("}\n");
  FileUtils.writeStringToFile(extManager,builder.toString());
}

public static void generateExtensionManager ( File rootFolder ) throws IOException { File extManager = new File ( rootFolder , IDE_INJECTOR_PATH ) ; StringBuilder builder = new StringBuilder ( ) ; builder . append ( "package " + "org.eclipse.che.ide.client.inject;\n\n" ) ; builder . append ( "import org.eclipse.che.ide.client.BootstrapController;\n" ) ; builder . append ( "import com.google.gwt.inject.client.GinModules;\n" ) ; builder . append ( "import com.google.gwt.inject.client.Ginjector;\n" ) ; builder . append ( "\n" ) ; builder . append ( "/**\n" ) ; builder . append ( " * THIS CLASS WILL BE OVERRIDDEN BY MAVEN BUILD. DON'T EDIT CLASS, IT WILL HAVE NO EFFECT.\n" ) ; builder . append ( " * \n" ) ; builder . append ( " * Interface for GIN Injector, that provides access to the top level\n" ) ; builder . append ( " * application components. Implementation of Injector is generated\n" ) ; builder . append ( " * on compile time.\n" ) ; builder . append ( " */\n" ) ; builder . append ( "@GinModules({\n" ) ; generateListOfModules ( builder ) ; builder . append ( "})\n" ) ; builder . append ( "public interface IDEInjector extends Ginjector\n" ) ; builder . append ( "{\n" ) ; builder . append ( "\n" ) ; builder . append ( GeneratorUtils . TAB + "/**\n" ) ; builder . append ( GeneratorUtils . TAB + " * @return the instance of BootstrapController\n" ) ; builder . append ( GeneratorUtils . TAB + " */\n" ) ; builder . append ( GeneratorUtils . TAB + "BootstrapController getBootstrapController();\n" ) ; builder . append ( "\n" ) ; builder . append ( "}\n" ) ; FileUtils . writeStringToFile ( extManager , builder . toString ( ) ) ; }
generate to source of the class
