1 23 package org.enhydra.kelp.common.codegen; 24 25 27 import org.enhydra.tool.codegen.ProjectGenerator; 28 import org.enhydra.tool.codegen.internal.Enhydra3AppGenerator; 29 30 import org.enhydra.kelp.KelpInfo; 32 import org.enhydra.kelp.common.node.OtterNode; 33 import org.enhydra.kelp.common.node.OtterProject; 34 import org.enhydra.kelp.common.node.OtterFolderNode; 35 import org.enhydra.kelp.common.node.OtterJavaFileNode; 36 import org.enhydra.kelp.common.node.OtterTextFileNode; 37 import org.enhydra.kelp.common.node.OtterNodeFactory; 38 39 import java.awt.Component ; 41 import java.io.File ; 42 import java.io.FilenameFilter ; 43 import java.util.Vector ; 44 import java.util.ResourceBundle ; 45 46 52 public class Enhydra3AppUtil extends AppGenUtil { 53 54 private final static String DEFAULT_COMMAND_NAME = "en3app"; 57 public Enhydra3AppUtil() throws CodeGenException { 59 super(new Enhydra3AppGenerator()); 60 } 61 62 public Enhydra3AppUtil(OtterProject project) throws CodeGenException { 63 super(project, new Enhydra3AppGenerator()); 64 } 65 66 public Enhydra3AppUtil(OtterProject project, Enhydra3AppGenerator gen) throws CodeGenException { 67 super(project, gen); 68 } 69 70 71 public static ProjectGenerator createGenerator() { 72 return new Enhydra3AppGenerator(); 73 } 74 75 public static String getCommandName() { 76 String commandName = DEFAULT_COMMAND_NAME; 77 78 if (KelpInfo.isClassPathComplete()) { 79 commandName = Enhydra3AppGenerator.COMMAND_NAME; 80 } 81 return commandName; 82 } 83 84 90 public static String getDisplayName() { 91 String displayName = res.getString("Enhydra_Super_Servlet"); 92 93 if (KelpInfo.isClassPathComplete()) { 94 displayName = Enhydra3AppGenerator.displayName; 95 } 96 return displayName; 97 } 98 99 } 100 | Popular Tags |