Search in sources :

Example 16 with IOtpRpc

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

Aggregations

IOtpRpc (org.erlide.runtime.rpc.IOtpRpc)16 IErlProject (org.erlide.engine.model.root.IErlProject)6 RpcException (org.erlide.runtime.rpc.RpcException)6 OtpErlangList (com.ericsson.otp.erlang.OtpErlangList)4 OtpErlangObject (com.ericsson.otp.erlang.OtpErlangObject)4 Test (org.junit.Test)4 OtpErlangTuple (com.ericsson.otp.erlang.OtpErlangTuple)3 IErlModule (org.erlide.engine.model.root.IErlModule)3 DebugException (org.eclipse.debug.core.DebugException)2 BadLocationException (org.eclipse.jface.text.BadLocationException)2 IErlModel (org.erlide.engine.model.root.IErlModel)2 OpenResult (org.erlide.engine.services.search.OpenResult)2 AbstractErlangEditor (org.erlide.ui.editors.erl.AbstractErlangEditor)2 OtpErlangAtom (com.ericsson.otp.erlang.OtpErlangAtom)1 Function (com.google.common.base.Function)1 IOException (java.io.IOException)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 ArrayList (java.util.ArrayList)1 TimeoutException (java.util.concurrent.TimeoutException)1 IProject (org.eclipse.core.resources.IProject)1