Search in sources :

Example 6 with IBackendManager

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

the class OtpRpcProvider method get.

@Override
public IOtpRpc get() {
    try {
        final IBackendManager backendManager = BackendCore.getBackendManager();
        final IBackend ideBackend = backendManager.getIdeBackend();
        return ideBackend.getOtpRpc();
    } catch (final Exception e) {
        ErlLogger.error("No Erlang runtime is installed! (" + e.getMessage() + ")");
        return null;
    }
}
Also used : IBackendManager(org.erlide.backend.api.IBackendManager) IBackend(org.erlide.backend.api.IBackend)

Example 7 with IBackendManager

use of org.erlide.backend.api.IBackendManager 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

IBackendManager (org.erlide.backend.api.IBackendManager)7 IBackend (org.erlide.backend.api.IBackend)6 OtpErlangBinary (com.ericsson.otp.erlang.OtpErlangBinary)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 IProject (org.eclipse.core.resources.IProject)1 CoreException (org.eclipse.core.runtime.CoreException)1 IPath (org.eclipse.core.runtime.IPath)1 DebugException (org.eclipse.debug.core.DebugException)1 ILaunch (org.eclipse.debug.core.ILaunch)1 IBackendFactory (org.erlide.backend.api.IBackendFactory)1 ErlModelException (org.erlide.engine.model.ErlModelException)1 IErlProject (org.erlide.engine.model.root.IErlProject)1 IOtpNodeProxy (org.erlide.runtime.api.IOtpNodeProxy)1 RpcException (org.erlide.runtime.rpc.RpcException)1 IRuntimeInfoCatalog (org.erlide.runtime.runtimeinfo.IRuntimeInfoCatalog)1 ErlConsoleManager (org.erlide.ui.console.ErlConsoleManager)1 IErlangConsole (org.erlide.ui.console.IErlangConsole)1