Public Member Functions | |
History (AbstractConsoleModule module) | |
void | parse (String commandText) throws Exception |
String | getCommandName () |
String | getCommandDescription () |
String | getCommandParameters () |
Definition at line 39 of file History.java.
|
Creates a new
Definition at line 47 of file History.java. 00048 { 00049 super(module); 00050 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 86 of file History.java. 00087 { 00088 return ConsoleTranslate.get("console.command.history"); 00089 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 78 of file History.java. 00079 { 00080 return "history"; 00081 }
|
|
Reimplemented from org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 94 of file History.java. 00095 { 00096 return "[<commandIndex>]"; 00097 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 55 of file History.java. References org.objectweb.cjdbc.console.text.module.AbstractConsoleModule.getHashCommands(), org.objectweb.cjdbc.console.text.module.AbstractConsoleModule.getHistory(), org.objectweb.cjdbc.console.text.module.AbstractConsoleModule.handleCommandLine(), and org.objectweb.cjdbc.console.text.Console.println(). 00056 { 00057 LinkedList list = module.getHistory(); 00058 StringTokenizer st = new StringTokenizer(commandText); 00059 if (st.countTokens() == 0) 00060 { 00061 for (int i = 0; i < list.size(); i++) 00062 { 00063 Object o = list.get(i); 00064 console.println("[" + i + "]\t" + o); 00065 } 00066 } 00067 else 00068 { 00069 int line = Integer.parseInt(st.nextToken()); 00070 module.handleCommandLine((String) list.get(line), module 00071 .getHashCommands()); 00072 } 00073 }
|