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;
}
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;
}
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);
}
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;
}
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;
}
Aggregations