Package org.jnode.driver.console

Examples of org.jnode.driver.console.InputHistory


            try {
                clearEof();
                try {
                    // Each interactive command is launched with a fresh history
                    // for input completion
                    applicationHistory.set(new InputHistory());
                    reader = new CommandShellReader(this, interpreter, outPW, in);
                    interpreter.interpret(this, reader, false, null, null);
                } finally {
                    applicationHistory.set(null);
                }
View Full Code Here


    }

    private void addToInputHistory(String line) {
        // Add this line to the application input history.
        if (isHistoryEnabled() && !line.equals(lastInputLine)) {
            InputHistory history = applicationHistory.get();
            if (history != null) {
                history.addLine(line);
                lastInputLine = line;
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.jnode.driver.console.InputHistory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.