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

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


    @Override
    public RefactoringStatus checkFinalConditions(final IProgressMonitor pm)
            throws CoreException, OperationCanceledException {
        final IErlSelection sel = GlobalParameters.getWranglerSelection();

        final ProcessRpcMessage msg = checkUndecidables((IErlMemberSelection) sel);

        if (msg.isSuccessful()) {
            changedFiles = msg.getRefactoringChangeset();
            return new RefactoringStatus();
        } else if (msg.hasUndecidables()) {
            undecidables = msg.getMessageString();
            final IRefactoringRpcMessage message = run(sel);
            changedFiles = message.getRefactoringChangeset();

            return RefactoringStatus.createWarningStatus(getUndecidableWarningMessage());
        } else {
            return RefactoringStatus.createFatalErrorStatus(msg.getMessageString());

        }
    }
View Full Code Here


    }

    @Override
    protected ProcessRpcMessage checkUndecidables(final IErlMemberSelection sel) {
        return (ProcessRpcMessage) WranglerBackendManager.getRefactoringBackend()
                .callWithParser(new ProcessRpcMessage(), "fun_to_process_eclipse",
                        "siisxi", sel.getFilePath(),
                        sel.getSelectionRange().getStartLine(),
                        sel.getSelectionRange().getStartCol(), userInput,
                        sel.getSearchPath(), GlobalParameters.getTabWidth());
    }
View Full Code Here

    @SuppressWarnings("boxing")
    @Override
    protected ProcessRpcMessage checkUndecidables(final IErlMemberSelection sel) {
        return (ProcessRpcMessage) WranglerBackendManager.getRefactoringBackend()
                .callWithParser(new ProcessRpcMessage(), "rename_process_eclipse",
                        "siisxi", sel.getFilePath(),
                        sel.getSelectionRange().getStartLine(),
                        sel.getSelectionRange().getStartCol(), userInput,
                        sel.getSearchPath(), GlobalParameters.getTabWidth());
    }
View Full Code Here

TOP

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

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.