Package org.erlide.wrangler.refactoring.backend.internal

Examples of org.erlide.wrangler.refactoring.backend.internal.WranglerRefactoringBackend


    @Override
    protected IResultParser callRefactoring() throws WranglerRpcParsingException {
        final IErlMemberSelection sel = (IErlMemberSelection) GlobalParameters
                .getWranglerSelection();
        final WranglerRefactoringBackend backend = WranglerBackendManager
                .getRefactoringBackend();
        final RpcResult result = backend.callWithoutParser(
                WranglerRefactoringBackend.UNLIMITED_TIMEOUT, "expr_search_eclipse",
                "sxxi", sel.getFilePath(), sel.getSelectionRange().getStartPos(), sel
                        .getSelectionRange().getEndPos(), GlobalParameters.getTabWidth());
        if (result.isOk()) {
            return new ExpressionSearchParser(result.getValue());
View Full Code Here


    boolean onlyInFile;

    @Override
    protected IResultParser callRefactoring() throws WranglerRpcParsingException,
            CoreException, IOException, WranglerWarningException {
        final WranglerRefactoringBackend backend = WranglerBackendManager
                .getRefactoringBackend();
        final IErlMemberSelection sel = (IErlMemberSelection) GlobalParameters
                .getWranglerSelection();

        RpcResult result;
        final String functionName = "sim_code_detection_eclipse";
        if (onlyInFile) {

            final OtpErlangString fp = new OtpErlangString(sel.getFilePath());
            final OtpErlangString[] fpa = new OtpErlangString[1];
            fpa[0] = fp;
            final OtpErlangList fpl = new OtpErlangList(fpa);

            result = backend.callWithoutParser(
                    WranglerRefactoringBackend.UNLIMITED_TIMEOUT, functionName,
                    "xiiiidxi", fpl, minLen, minToks, minFreq, maxNewVars, simScore,
                    sel.getSearchPath(), GlobalParameters.getTabWidth());
        } else {
            result = backend.callWithoutParser(
                    WranglerRefactoringBackend.UNLIMITED_TIMEOUT, functionName,
                    "xiiiidxi", sel.getSearchPath(), minLen, minToks, minFreq,
                    maxNewVars, simScore, sel.getSearchPath(),
                    GlobalParameters.getTabWidth());
        }
View Full Code Here

    protected IResultParser callRefactoring() throws WranglerRpcParsingException,
            CoreException, IOException, WranglerWarningException {

        final IErlMemberSelection sel = (IErlMemberSelection) GlobalParameters
                .getWranglerSelection();
        final WranglerRefactoringBackend backend = WranglerBackendManager
                .getRefactoringBackend();
        RpcResult result = null;
        String functionName;
        if (onlyInFile) {
            functionName = "simi_expr_search_in_buffer_eclipse";
        } else {
            functionName = "simi_expr_search_in_dirs_eclipse";
        }
        result = backend.callWithoutParser(WranglerRefactoringBackend.UNLIMITED_TIMEOUT,
                functionName, "sxxxxi", sel.getFilePath(), sel.getSelectionRange()
                        .getStartPos(), sel.getSelectionRange().getEndPos(),
                new OtpErlangFloat(simScore), sel.getSearchPath(), GlobalParameters
                        .getTabWidth());
View Full Code Here

        // getting the path of the fragment

        final String suffixPath = getSuffixPath();
        ErlLogger.debug("Suffix binary at: " + suffixPath);
        final WranglerRefactoringBackend backend = WranglerBackendManager
                .getRefactoringBackend();
        final IErlMemberSelection sel = (IErlMemberSelection) GlobalParameters
                .getWranglerSelection();

        if (onlyInfile) {
            functionName = "duplicated_code_eclipse";
            final OtpErlangString fp = new OtpErlangString(sel.getFilePath());
            final OtpErlangString[] fpa = new OtpErlangString[1];
            fpa[0] = fp;
            final OtpErlangList fpl = new OtpErlangList(fpa);

            result = backend.callWithoutParser(
                    WranglerRefactoringBackend.UNLIMITED_TIMEOUT, functionName, "xiiis",
                    fpl, minToks, minClones, GlobalParameters.getTabWidth(), suffixPath);
        } else {
            functionName = "duplicated_code_eclipse";
            result = backend.callWithoutParser(
                    WranglerRefactoringBackend.UNLIMITED_TIMEOUT, functionName, "xiiis",
                    sel.getSearchPath(), minToks, minClones,
                    GlobalParameters.getTabWidth(), suffixPath);
        }
View Full Code Here

TOP

Related Classes of org.erlide.wrangler.refactoring.backend.internal.WranglerRefactoringBackend

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.