|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.toolforge.karma.cli.HistoryManager
Class managing the CLI history of commands that have been run. The CLI is capable of fetching arrow-up and arrow-down commands
Constructor Summary | |
HistoryManager(int maxHistoryItems)
|
Method Summary | |
void |
addHistoryItem(java.lang.String commandLine)
Adds a command line string to the history. |
java.lang.String |
getCurrentHistoryItem()
Returns the current history item that is been pointed at. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HistoryManager(int maxHistoryItems)
Method Detail |
public void addHistoryItem(java.lang.String commandLine)
commandLine
- The string that is fetched from stdin
.public java.lang.String getCurrentHistoryItem()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |