Package org.erlide.util

Examples of org.erlide.util.ErlangFunctionCall


            final Object inputElement = input.getInputElement();
            if (inputElement instanceof ExternalCallOpenResult) {
                final ExternalCallOpenResult or = (ExternalCallOpenResult) inputElement;
                moduleName = or.getMod();
            }
            final ErlangFunctionCall functionCall = HoverUtil.eventToErlangFunctionCall(
                    moduleName, event);
            if (functionCall != null) {
                final IErlProject project = ErlangEngine.getInstance()
                        .getModelUtilService().getProject(editor.getModule());
                if (project == null) {
View Full Code Here


            if (minusPos > 0) {
                final String s = name.substring(minusPos + 1);
                name = name.substring(0, minusPos);
                try {
                    final int i = Integer.parseInt(s);
                    final ErlangFunctionCall erlangFunctionCall = new ErlangFunctionCall(
                            moduleName, name, i);
                    ErlLogger.debug("%s", erlangFunctionCall);
                    return erlangFunctionCall;
                } catch (final NumberFormatException e) {
                }
View Full Code Here

    private void registerStartupFunctionStarter(final BackendData myData) {
        DebugPlugin.getDefault().addDebugEventListener(new IDebugEventSetListener() {
            @Override
            public void handleDebugEvents(final DebugEvent[] events) {
                final ErlangFunctionCall initCall = myData.getInitialCall();
                if (initCall != null) {
                    runInitial(initCall.getModule(), initCall.getName(),
                            initCall.getParameters());
                }
                DebugPlugin.getDefault().removeDebugEventListener(this);
            }
        });
    }
View Full Code Here

            registerCodeBundle(context, bb);
        }
        initErlang(data.isManaged());
        if (data.isManaged()) {
            // don't run this if the node is already running
            final ErlangFunctionCall initCall = data.getInitialCall();
            if (initCall != null) {
                runInitial(initCall.getModule(), initCall.getName(),
                        initCall.getParameters());
            }
        }
        final Collection<IProject> projects = Lists.newArrayList(data.getProjects());
        registerProjectsWithExecutionBackend(projects, backendManager);
        if (data.isDebug()) {
View Full Code Here

    private ErlangFunctionCall createInitialCall(final ILaunchConfiguration config)
            throws CoreException {
        final String module = config.getAttribute(ErlRuntimeAttributes.MODULE, "");
        final String function = config.getAttribute(ErlRuntimeAttributes.FUNCTION, "");
        final String args = config.getAttribute(ErlRuntimeAttributes.ARGUMENTS, "");
        return new ErlangFunctionCall(module, function, args);
    }
View Full Code Here

        final ErlangProcess erlangProcess = debugTarget.getOrCreateErlangProcess(pid);
        final OtpErlangAtom statusA = (OtpErlangAtom) t.elementAt(2);
        final String status = statusA.atomValue();
        erlangProcess.setStatus(status);
        final OtpErlangTuple initialCall = (OtpErlangTuple) t.elementAt(1);
        erlangProcess.setInitialCall(new ErlangFunctionCall(initialCall));
        erlangProcess.fireCreationEvent();
    }
View Full Code Here

TOP

Related Classes of org.erlide.util.ErlangFunctionCall

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.