For IntelliJ IDEA,
Android Studio or Eclipse



/** * Handles the main loop for the REPL. */ public void run() { // welcome message writeLine(WELCOME); // print the globals if we got 'em executor.getContext() .getCapability(GLOBAL_CONFIG, false) .ifPresent(conf -> writeLine(conf.toString())); console.start(); }
@Override public void start() { console.start(); }
console.addCompletion(new Completer(context)); console.setConsoleCallback(new CLIConsoleCallback()); console.start(); ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor(); sessionPingTask = executor.scheduleWithFixedDelay(new PingTask(), SESSION_PING_TIMEOUT, SESSION_PING_TIMEOUT, TimeUnit.SECONDS);
console.start();
exampleConsole.start();