use of org.erlide.engine.services.parsing.RuntimeHelper in project erlide_eclipse by erlang.
the class ErlangConsolePage method isInputComplete.
boolean isInputComplete() {
if (!backend.getRuntime().isRunning()) {
return false;
}
try {
final String str = consoleInputText.getText() + " ";
final RuntimeHelper helper = new RuntimeHelper(backend.getOtpRpc());
final OtpErlangObject o = helper.parseConsoleInput(str);
if (o instanceof OtpErlangList && ((OtpErlangList) o).arity() == 0) {
return false;
}
if (!(o instanceof OtpErlangList)) {
return false;
}
} catch (final ParserException e) {
return false;
}
return true;
}
Aggregations