private BackendData getIdeBackendData() { final RuntimeInfo info = getIdeRuntimeInfo(); final BackendData result = new BackendData(runtimeInfoManager, info); result.setNodeName(getIdeNodeName()); result.setDebug(false); result.setAutostart(true); result.setConsole(false); result.setLongName(false); if (SystemUtils.getInstance().isDeveloper()) { result.setConsole(true); } if (SystemUtils.getInstance().isMonitoringIdeBackend()) { result.setMonitored(true); } result.setInternal(true); return result; }
private ILaunch launchPeer(final BackendData data) { final ILaunchConfiguration launchConfig = data.asLaunchConfiguration(); try { final boolean registerForDebug = data.getLaunch() != null || SystemUtils.getInstance().isDeveloper(); return launchConfig.launch( ILaunchManager.RUN_MODE, new NullProgressMonitor(), false, registerForDebug); } catch (final CoreException e) { ErlLogger.error(e); return null; } }