1 22 23 package org.continuent.sequoia.console.text.commands; 24 25 import java.io.IOException ; 26 27 import org.continuent.sequoia.common.i18n.ConsoleTranslate; 28 import org.continuent.sequoia.console.text.ConsoleException; 29 import org.continuent.sequoia.console.text.module.AbstractConsoleModule; 30 31 37 public class Quit extends ConsoleCommand 38 { 39 40 45 public Quit(AbstractConsoleModule module) 46 { 47 super(module); 48 } 49 50 53 public void parse(String commandText) throws IOException , ConsoleException 54 { 55 module.quit(); 56 } 57 58 61 public String getCommandName() 62 { 63 return "quit"; } 65 66 69 public String getCommandDescription() 70 { 71 return ConsoleTranslate.get("console.command.quit"); } 73 74 77 public void execute(String commandText) throws Exception 78 { 79 this.parse(commandText); 80 } 81 82 } | Popular Tags |