Search in sources :

Example 1 with IRuntimeInfoCatalog

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;
}
Also used : IRuntimeInfoCatalog(org.erlide.runtime.runtimeinfo.IRuntimeInfoCatalog) RuntimeInfoCatalog(org.erlide.runtime.runtimeinfo.RuntimeInfoCatalog) RuntimeInfo(org.erlide.runtime.runtimeinfo.RuntimeInfo) RuntimeInfoCatalogData(org.erlide.runtime.runtimeinfo.RuntimeInfoCatalogData)

Example 2 with IRuntimeInfoCatalog

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");
}
Also used : IBackendFactory(org.erlide.backend.api.IBackendFactory) IRuntimeInfoCatalog(org.erlide.runtime.runtimeinfo.IRuntimeInfoCatalog) IBackendManager(org.erlide.backend.api.IBackendManager) IBackendFactory(org.erlide.backend.api.IBackendFactory) IBackendManager(org.erlide.backend.api.IBackendManager)

Aggregations

IRuntimeInfoCatalog (org.erlide.runtime.runtimeinfo.IRuntimeInfoCatalog)2 IBackendFactory (org.erlide.backend.api.IBackendFactory)1 IBackendManager (org.erlide.backend.api.IBackendManager)1 RuntimeInfo (org.erlide.runtime.runtimeinfo.RuntimeInfo)1 RuntimeInfoCatalog (org.erlide.runtime.runtimeinfo.RuntimeInfoCatalog)1 RuntimeInfoCatalogData (org.erlide.runtime.runtimeinfo.RuntimeInfoCatalogData)1