Search in sources :

Example 1 with BackendData

use of org.erlide.backend.api.BackendData in project erlide_eclipse by erlang.

the class BackendFactory method createIdeBackend.

@Override
public IBackend createIdeBackend() {
    final BackendData data = getIdeBackendData();
    ErlLogger.debug("Create ide backend " + data.getRuntimeInfo().getVersion());
    final IBackend backend = createBackend(data);
    return backend;
}
Also used : BackendData(org.erlide.backend.api.BackendData) IBackend(org.erlide.backend.api.IBackend)

Example 2 with BackendData

use of org.erlide.backend.api.BackendData in project erlide_eclipse by erlang.

the class CoverLaunchConfigurationDelegate method configureBackend.

@Override
protected BackendData configureBackend(final BackendData data, final String mode, final ILaunch launch) {
    final BackendData myData = super.configureBackend(data, mode, launch);
    myData.setConsole(true);
    myData.setLongName(false);
    myData.setReportErrors(true);
    myData.setNodeName(CoverBackend.NODE_NAME);
    myData.setUseStartShell(true);
    myData.setContext(CodeContext.DEBUGGER);
    return myData;
}
Also used : BackendData(org.erlide.backend.api.BackendData)

Example 3 with BackendData

use of org.erlide.backend.api.BackendData in project erlide_eclipse by erlang.

the class ErlConsoleManager method runtimeAdded.

@Override
public void runtimeAdded(final IBackend b) {
    if (b == null) {
        return;
    }
    final BackendData data = b.getData();
    if (!data.hasConsole()) {
        return;
    }
    ErlLogger.debug("console ADDED to " + data);
    final ErlangConsole console = new ErlangConsole(b);
    conMan.addConsoles(new IConsole[] { console });
    consoles.put(b, console);
}
Also used : BackendData(org.erlide.backend.api.BackendData)

Example 4 with BackendData

use of org.erlide.backend.api.BackendData in project erlide_eclipse by erlang.

the class TraceBackend method getBackendData.

private BackendData getBackendData(@NonNull final RuntimeInfo rinfo) {
    final BackendData backendData = new BackendData(rinfo);
    final String nodeName = Activator.getDefault().getPreferenceStore().getString(PreferenceNames.NODE_NAME);
    backendData.setNodeName(nodeName);
    backendData.setConsole(false);
    backendData.setReportErrors(true);
    return backendData;
}
Also used : BackendData(org.erlide.backend.api.BackendData) OtpErlangString(com.ericsson.otp.erlang.OtpErlangString)

Example 5 with BackendData

use of org.erlide.backend.api.BackendData in project erlide_eclipse by erlang.

the class TraceBackend method createBackend.

private IBackend createBackend() {
    final RuntimeInfo erlideRuntime = BackendCore.getRuntimeInfoCatalog().getErlideRuntime();
    if (erlideRuntime == null) {
        return null;
    }
    final RuntimeInfo info = new RuntimeInfo(erlideRuntime);
    try {
        final BackendData data = getBackendData(info);
        data.setUseStartShell(true);
        final IBackend b = BackendCore.getBackendManager().createExecutionBackend(data);
        return b;
    } catch (final Exception e) {
        ErlLogger.error(e);
    }
    return null;
}
Also used : RuntimeInfo(org.erlide.runtime.runtimeinfo.RuntimeInfo) BackendData(org.erlide.backend.api.BackendData) IBackend(org.erlide.backend.api.IBackend) RpcException(org.erlide.runtime.rpc.RpcException)

Aggregations

BackendData (org.erlide.backend.api.BackendData)10 RuntimeInfo (org.erlide.runtime.runtimeinfo.RuntimeInfo)5 IBackend (org.erlide.backend.api.IBackend)3 OtpErlangString (com.ericsson.otp.erlang.OtpErlangString)1 IOtpNodeProxy (org.erlide.runtime.api.IOtpNodeProxy)1 RpcException (org.erlide.runtime.rpc.RpcException)1