use of org.erlide.runtime.rpc.IOtpRpc in project erlide_eclipse by erlang.
the class Backend method startErlideApps.
protected boolean startErlideApps(final OtpErlangPid jRex, final boolean watch) {
try {
final IOtpRpc site = getOtpRpc();
final SystemConfiguration sysconf = SystemConfiguration.getInstance();
site.call("erlide_common_app", "init", "poii", jRex, watch, sysconf.getWarnProcessSizeLimitMB(), sysconf.getKillProcessSizeLimitMB());
site.call("erlide_tools_app", "init", "");
// TODO should use extension point!
switch(data.getContext()) {
case BUILDER:
site.call("erlide_builder_app", "init", "i", sysconf.getMaxParallelBuilds());
break;
case IDE:
site.call("erlide_builder_app", "init", "i", sysconf.getMaxParallelBuilds());
// site.call("erlide_ide_app", "init", "");
break;
default:
}
return true;
} catch (final Exception e) {
ErlLogger.error(e);
return false;
}
}
Aggregations