1 2 24 package org.enhydra.tool.codegen.internal; 25 26 import org.enhydra.tool.ToolBoxInfo; 28 import org.enhydra.tool.codegen.ProjectOptionSet; 29 import org.enhydra.tool.codegen.GeneratorException; 30 import org.enhydra.tool.codegen.GeneratorOption; 31 import org.enhydra.tool.codegen.Constants; 32 33 import java.io.File ; 35 import java.util.StringTokenizer ; 36 import java.util.ResourceBundle ; 37 38 43 public class AppOptionSet extends ProjectOptionSet implements Constants { 44 45 48 public static final String CLIENT = "client"; 50 public AppOptionSet() { 51 super(); 52 String [] docTypes = new String [0]; 53 StringBuffer clientBuf = new StringBuffer (); 54 boolean e4 = false; 55 56 e4 = (!ToolBoxInfo.isEnhydra3()); 57 docTypes = ToolBoxInfo.getSupportedDocTypes(); 58 clientBuf.append(res.getString("Application_client")); 59 clientBuf.append(' '); 60 for (int i = 0; i < docTypes.length; i++) { 61 if (i > 0) { 62 clientBuf.append(','); 63 clientBuf.append(' '); 64 } 65 clientBuf.append(docTypes[i].toUpperCase()); 66 } 67 try { 68 add(new GeneratorOption(CLIENT, TYPE_HTML.toUpperCase(), 69 res.getString("CLIENT"), 70 clientBuf.toString(), false, true)); 71 } catch (GeneratorException e) { 72 e.printStackTrace(); 73 } 74 } 75 76 } 77 | Popular Tags |