use of org.erlide.runtime.runtimeinfo.IRuntimeInfoCatalog in project erlide_eclipse by erlang.
the class RuntimeCore method getRuntimeInfoCatalog.
public static final synchronized IRuntimeInfoCatalog getRuntimeInfoCatalog(final IRuntimeInfoSerializer serializer) {
if (RuntimeCore.runtimeInfoCatalog == null) {
final RuntimeInfoCatalogData data = serializer.load();
RuntimeCore.runtimeInfoCatalog = new RuntimeInfoCatalog();
RuntimeCore.runtimeInfoCatalog.setRuntimes(data.runtimes, data.defaultRuntimeName, data.erlideRuntimeName);
final RuntimeInfo runtime = RuntimeCore.runtimeInfoCatalog.getErlideRuntime();
if (!HostnameChecker.getInstance().detectHostNames(runtime.getOtpHome())) {
// XXX show troubleshooting page and re-detect
ErlLogger.error("no matching hostnames found!! Edit ~/.erlide.hosts");
}
}
return RuntimeCore.runtimeInfoCatalog;
}
use of org.erlide.runtime.runtimeinfo.IRuntimeInfoCatalog in project erlide_eclipse by erlang.
the class BackendActivator method start.
@Override
public void start(final BundleContext context) throws Exception {
DebugStream.activate();
ErlLogger.debug("Backend plugin starting");
final IRuntimeInfoCatalog catalog = BackendCore.getRuntimeInfoCatalog();
final IBackendFactory backendFactory = new BackendFactory(catalog);
final IBackendManager backendManager = new BackendManager(backendFactory);
BackendCore.init(backendManager);
ErlLogger.debug("Backend plugin started");
}
Aggregations