Package org.erlide.backend.api

Examples of org.erlide.backend.api.IBackendManager


        if (!ignore) {
            return BackendCore.getBackendManager().getAllBackends();
        }

        final List<IBackend> backends = new ArrayList<IBackend>();
        final IBackendManager backendManager = BackendCore.getBackendManager();
        final Set<IBackend> ignored = new HashSet<IBackend>();
        IBackend backend;

        if ((backend = backendManager.getIdeBackend()) != null) {
            ignored.add(backend);
        }
        if ((backend = TraceBackend.getInstance().getBackend(false)) != null) {
            ignored.add(backend);
        }
View Full Code Here


        consolePage.input(text);
        super.run(selection);
    }

    private IErlangConsole getConsole(final @NonNull IProject aproject) {
        final IBackendManager backendManager = BackendCore.getBackendManager();
        final Set<IBackend> executionBackends = backendManager
                .getExecutionBackends(aproject);
        final ErlConsoleManager erlConsoleManager = ErlideUIPlugin.getDefault()
                .getErlConsoleManager();
        IErlangConsole result = null;
        for (final IBackend backend : executionBackends) {
View Full Code Here

            if (launch != null) {
                terminate(launch);

                final Collection<IProject> projects = Lists.newArrayList(backend
                        .getData().getProjects());
                final IBackendManager backendManager = BackendCore.getBackendManager();
                for (final IProject project : projects) {
                    backendManager.removeExecutionBackend(project, backend);
                }

                setEnabled(false);
                fConsole.stop();
            }
View Full Code Here

        }
    }

    public static void loadModule(final @NonNull IProject project, final String module) {
        try {
            final IBackendManager backendManager = BackendCore.getBackendManager();
            for (final IBackend b : backendManager.getExecutionBackends(project)) {
                ErlLogger.debug(":: loading %s in %s", module, b.getName());
                b.getOtpRpc().call("erlide_util", "load", "ao", module,
                        b.getData().shouldLoadOnAllNodes());
                backendManager.moduleLoaded(b, project, module);
            }
        } catch (final Exception e) {
            ErlLogger.debug(e);
        }
    }
View Full Code Here

  }
 
  public String getOsCommand(final IErlProject erlProject) {
    String _xblockexpression = null;
    {
      IBackendManager _backendManager = BackendCore.getBackendManager();
      final IBackend backend = _backendManager.getBuildBackend(erlProject);
      IOtpNodeProxy _nodeProxy = backend.getNodeProxy();
      String _otpHome = _nodeProxy.getOtpHome();
      Path _path = new Path(_otpHome);
      final IPath path = _path.append("bin/erl");
      String _xifexpression = null;
View Full Code Here

        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");
    }
View Full Code Here

public class OtpRpcProvider implements IOtpRpcProvider {

    @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!");
            return null;
        }
View Full Code Here

    public static IRuntimeInfoCatalog getRuntimeInfoCatalog() {
        return RuntimeCore.getRuntimeInfoCatalog(new RuntimeInfoPreferencesSerializer());
    }

    public static IOtpRpc getBuildBackend(@NonNull final IErlProject project) {
        final IBackendManager manager = getBackendManager();
        return manager.getBuildBackend(project).getOtpRpc();
    }
View Full Code Here

            erts = null;
        }
        final IOtpNodeProxy nodeProxy = new OtpNodeProxy(data);
        nodeProxy.startAndWait();

        final IBackendManager backendManager = BackendCore.getBackendManager();
        final Backend b = data.isInternal() ? new InternalBackend(data, nodeProxy, erts)
                : new ExternalBackend(data, nodeProxy, erts);

        b.initialize(data.getContext(), backendManager);
        nodeProxy.addStatusHandler(new Procedure1<Boolean>() {
View Full Code Here

TOP

Related Classes of org.erlide.backend.api.IBackendManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.