1 24 25 package org.objectweb.cjdbc.console.text.commands; 26 27 import java.io.IOException ; 28 29 import org.objectweb.cjdbc.common.i18n.ConsoleTranslate; 30 import org.objectweb.cjdbc.console.text.ConsoleException; 31 import org.objectweb.cjdbc.console.text.module.AbstractConsoleModule; 32 33 39 public class Quit extends ConsoleCommand 40 { 41 42 47 public Quit(AbstractConsoleModule module) 48 { 49 super(module); 50 } 51 52 55 public void parse(String commandText) throws IOException , ConsoleException 56 { 57 module.quit(); 58 } 59 60 63 public String getCommandName() 64 { 65 return "quit"; 66 } 67 68 71 public String getCommandDescription() 72 { 73 return ConsoleTranslate.get("console.command.quit"); 74 } 75 76 79 public void execute(String commandText) throws Exception 80 { 81 this.parse(commandText); 82 } 83 84 } | Popular Tags |