Search in sources :

Example 1 with SystemConfiguration

use of org.erlide.util.SystemConfiguration 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;
    }
}
Also used : SystemConfiguration(org.erlide.util.SystemConfiguration) DebugException(org.eclipse.debug.core.DebugException) IOException(java.io.IOException) IOtpRpc(org.erlide.runtime.rpc.IOtpRpc)

Aggregations

IOException (java.io.IOException)1 DebugException (org.eclipse.debug.core.DebugException)1 IOtpRpc (org.erlide.runtime.rpc.IOtpRpc)1 SystemConfiguration (org.erlide.util.SystemConfiguration)1